/usr/include/gwyddion/libgwyddion/gwyutils.h is in libgwyddion20-dev 2.38-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | /*
* @(#) $Id: gwyutils.h 16083 2014-03-30 13:04:08Z yeti-dn $
* Copyright (C) 2003-2011 David Necas (Yeti), Petr Klapetek.
* E-mail: yeti@gwyddion.net, klapetek@gwyddion.net.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __GWY_UTILS_H__
#define __GWY_UTILS_H__
#include <glib-object.h>
G_BEGIN_DECLS
typedef enum {
GWY_RAW_DATA_SINT8,
GWY_RAW_DATA_UINT8,
GWY_RAW_DATA_SINT16,
GWY_RAW_DATA_UINT16,
GWY_RAW_DATA_SINT32,
GWY_RAW_DATA_UINT32,
GWY_RAW_DATA_SINT64,
GWY_RAW_DATA_UINT64,
GWY_RAW_DATA_HALF,
GWY_RAW_DATA_FLOAT,
GWY_RAW_DATA_REAL,
GWY_RAW_DATA_DOUBLE,
} GwyRawDataType;
typedef enum {
GWY_BYTE_ORDER_NATIVE = 0,
GWY_BYTE_ORDER_LITTLE_ENDIAN = G_LITTLE_ENDIAN,
GWY_BYTE_ORDER_BIG_ENDIAN = G_BIG_ENDIAN,
} GwyByteOrder;
void gwy_hash_table_to_slist_cb(gpointer unused_key,
gpointer value,
gpointer user_data);
void gwy_hash_table_to_list_cb (gpointer unused_key,
gpointer value,
gpointer user_data);
gchar* gwy_strkill (gchar *s,
const gchar *killchars);
gchar* gwy_strreplace (const gchar *haystack,
const gchar *needle,
const gchar *replacement,
gsize maxrepl);
gint gwy_strdiffpos (const gchar *s1,
const gchar *s2);
gboolean gwy_strisident (const gchar *s,
const gchar *more,
const gchar *startmore);
gboolean gwy_ascii_strcase_equal (gconstpointer v1,
gconstpointer v2);
guint gwy_ascii_strcase_hash (gconstpointer v);
guint gwy_stramong (const gchar *str,
...);
gpointer gwy_memmem (gconstpointer haystack,
gsize haystack_len,
gconstpointer needle,
gsize needle_len);
gboolean gwy_file_get_contents (const gchar *filename,
guchar **buffer,
gsize *size,
GError **error);
gboolean gwy_file_abandon_contents (guchar *buffer,
gsize size,
GError **error);
gchar* gwy_find_self_dir (const gchar *dirname);
const gchar* gwy_get_user_dir (void);
const gchar* gwy_get_home_dir (void);
gchar* gwy_canonicalize_path (const gchar *path);
gboolean gwy_filename_ignore (const gchar *filename_sys);
gchar* gwy_sgettext (const gchar *msgid);
gchar* gwy_str_next_line (gchar **buffer);
guint gwy_gstring_replace (GString *str,
const gchar *old,
const gchar *replacement,
gint count);
void gwy_gstring_to_native_eol (GString *str);
void gwy_memcpy_byte_swap (const guint8 *source,
guint8 *dest,
gsize item_size,
gsize nitems,
gsize byteswap);
void gwy_convert_raw_data (gconstpointer data,
gsize nitems,
gssize stride,
GwyRawDataType datatype,
GwyByteOrder byteorder,
gdouble *target,
gdouble scale,
gdouble offset);
guint gwy_raw_data_size (GwyRawDataType datatype);
void gwy_object_set_or_reset (gpointer object,
GType type,
...);
G_END_DECLS
#endif /* __GWY_UTILS_H__ */
/* vim: set cin et ts=4 sw=4 cino=>1s,e0,n0,f0,{0,}0,^0,\:1s,=0,g1s,h0,t0,+1s,c3,(0,u0 : */
|