@revizly/sharp-libvips-dev 1.0.61 → 1.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cplusplus/VError.cpp +28 -0
- package/include/expat.h +13 -6
- package/include/expat_config.h +3 -3
- package/include/ffi.h +3 -3
- package/include/gio-unix-2.0/gio/gdesktopappinfo.h +40 -23
- package/include/gio-unix-2.0/gio/gunixmounts.h +3 -3
- package/include/glib-2.0/gio/gasyncinitable.h +32 -32
- package/include/glib-2.0/gio/gasyncresult.h +4 -4
- package/include/glib-2.0/gio/gbufferedinputstream.h +28 -28
- package/include/glib-2.0/gio/gbufferedoutputstream.h +3 -3
- package/include/glib-2.0/gio/gcancellable.h +6 -6
- package/include/glib-2.0/gio/gcharsetconverter.h +3 -3
- package/include/glib-2.0/gio/gconverter.h +16 -16
- package/include/glib-2.0/gio/gdatainputstream.h +3 -3
- package/include/glib-2.0/gio/gdataoutputstream.h +25 -25
- package/include/glib-2.0/gio/gfile.h +369 -369
- package/include/glib-2.0/gio/gfileattribute.h +4 -4
- package/include/glib-2.0/gio/gfileenumerator.h +18 -18
- package/include/glib-2.0/gio/gfileinfo.h +63 -63
- package/include/glib-2.0/gio/gfileinputstream.h +11 -11
- package/include/glib-2.0/gio/gfileiostream.h +11 -11
- package/include/glib-2.0/gio/gfilemonitor.h +1 -1
- package/include/glib-2.0/gio/gfileoutputstream.h +8 -8
- package/include/glib-2.0/gio/gicon.h +1 -1
- package/include/glib-2.0/gio/ginetaddress.h +1 -1
- package/include/glib-2.0/gio/ginetaddressmask.h +5 -5
- package/include/glib-2.0/gio/ginitable.h +16 -16
- package/include/glib-2.0/gio/ginputstream.h +47 -47
- package/include/glib-2.0/gio/gio-visibility.h +34 -0
- package/include/glib-2.0/gio/gioenums.h +3 -1
- package/include/glib-2.0/gio/giomodule.h +5 -5
- package/include/glib-2.0/gio/gioscheduler.h +10 -10
- package/include/glib-2.0/gio/giostream.h +16 -16
- package/include/glib-2.0/gio/giotypes.h +13 -12
- package/include/glib-2.0/gio/gloadableicon.h +13 -13
- package/include/glib-2.0/gio/gmemoryinputstream.h +1 -1
- package/include/glib-2.0/gio/gmountoperation.h +14 -14
- package/include/glib-2.0/gio/gnetworkaddress.h +5 -5
- package/include/glib-2.0/gio/gnetworkmonitor.h +10 -10
- package/include/glib-2.0/gio/gnetworkservice.h +2 -2
- package/include/glib-2.0/gio/goutputstream.h +76 -76
- package/include/glib-2.0/gio/gpollableinputstream.h +9 -9
- package/include/glib-2.0/gio/gpollableoutputstream.h +18 -18
- package/include/glib-2.0/gio/gpollableutils.h +18 -18
- package/include/glib-2.0/gio/gproxy.h +25 -25
- package/include/glib-2.0/gio/gproxyaddress.h +6 -6
- package/include/glib-2.0/gio/gproxyresolver.h +25 -25
- package/include/glib-2.0/gio/gresource.h +26 -26
- package/include/glib-2.0/gio/gseekable.h +16 -16
- package/include/glib-2.0/gio/gsimpleasyncresult.h +40 -40
- package/include/glib-2.0/gio/gsocket.h +103 -103
- package/include/glib-2.0/gio/gsocketaddress.h +2 -2
- package/include/glib-2.0/gio/gsocketaddressenumerator.h +14 -14
- package/include/glib-2.0/gio/gsocketclient.h +25 -25
- package/include/glib-2.0/gio/gsocketconnection.h +16 -16
- package/include/glib-2.0/gio/gsocketcontrolmessage.h +8 -8
- package/include/glib-2.0/gio/gsocketlistener.h +15 -15
- package/include/glib-2.0/gio/gsocketservice.h +1 -1
- package/include/glib-2.0/gio/gsrvtarget.h +3 -3
- package/include/glib-2.0/gio/gtcpconnection.h +1 -1
- package/include/glib-2.0/gio/gtcpwrapperconnection.h +1 -1
- package/include/glib-2.0/gio/gtlsbackend.h +1 -1
- package/include/glib-2.0/gio/gtlscertificate.h +10 -10
- package/include/glib-2.0/gio/gtlsclientconnection.h +5 -5
- package/include/glib-2.0/gio/gtlsconnection.h +23 -23
- package/include/glib-2.0/gio/gtlsserverconnection.h +2 -2
- package/include/glib-2.0/gio/gvfs.h +14 -14
- package/include/glib-2.0/gio/gvolume.h +8 -8
- package/include/glib-2.0/gio/gvolumemonitor.h +1 -1
- package/include/glib-2.0/gio/gzlibcompressor.h +1 -1
- package/include/glib-2.0/girepository/gi-visibility.h +34 -0
- package/include/glib-2.0/glib/deprecated/gmain.h +1 -1
- package/include/glib-2.0/glib/deprecated/grel.h +1 -1
- package/include/glib-2.0/glib/deprecated/gthread.h +1 -1
- package/include/glib-2.0/glib/galloca.h +2 -2
- package/include/glib-2.0/glib/garray.h +56 -56
- package/include/glib-2.0/glib/gbookmarkfile.h +93 -93
- package/include/glib-2.0/glib/gconvert.h +43 -43
- package/include/glib-2.0/glib/gdataset.h +14 -14
- package/include/glib-2.0/glib/gdate.h +17 -17
- package/include/glib-2.0/glib/gdir.h +2 -2
- package/include/glib-2.0/glib/gerror.h +1 -1
- package/include/glib-2.0/glib/ghook.h +103 -103
- package/include/glib-2.0/glib/giochannel.h +90 -90
- package/include/glib-2.0/glib/gkeyfile.h +112 -111
- package/include/glib-2.0/glib/glib-visibility.h +34 -0
- package/include/glib-2.0/glib/glist.h +37 -37
- package/include/glib-2.0/glib/gmacros.h +84 -27
- package/include/glib-2.0/glib/gmain.h +10 -10
- package/include/glib-2.0/glib/gmappedfile.h +4 -4
- package/include/glib-2.0/glib/gmarkup.h +2 -2
- package/include/glib-2.0/glib/gmem.h +68 -68
- package/include/glib-2.0/glib/gmessages.h +14 -14
- package/include/glib-2.0/glib/gnode.h +76 -76
- package/include/glib-2.0/glib/goption.h +45 -45
- package/include/glib-2.0/glib/gpattern.h +6 -6
- package/include/glib-2.0/glib/gpoll.h +6 -6
- package/include/glib-2.0/glib/gprimes.h +2 -2
- package/include/glib-2.0/glib/gprintf.h +10 -10
- package/include/glib-2.0/glib/gqsort.h +5 -5
- package/include/glib-2.0/glib/gquark.h +9 -5
- package/include/glib-2.0/glib/gqueue.h +1 -1
- package/include/glib-2.0/glib/grand.h +12 -12
- package/include/glib-2.0/glib/gscanner.h +138 -138
- package/include/glib-2.0/glib/gslice.h +15 -15
- package/include/glib-2.0/glib/gslist.h +34 -34
- package/include/glib-2.0/glib/gspawn.h +1 -1
- package/include/glib-2.0/glib/gstdio.h +16 -10
- package/include/glib-2.0/glib/gstrfuncs.h +63 -63
- package/include/glib-2.0/glib/gtestutils.h +2 -2
- package/include/glib-2.0/glib/gtimer.h +9 -9
- package/include/glib-2.0/glib/gtree.h +3 -3
- package/include/glib-2.0/glib/gtypes.h +166 -166
- package/include/glib-2.0/glib/gutils.h +35 -33
- package/include/glib-2.0/glib/gversionmacros.h +9 -0
- package/include/glib-2.0/glib-object.h +1 -1
- package/include/glib-2.0/glib.h +1 -1
- package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
- package/include/glib-2.0/gmodule.h +12 -12
- package/include/glib-2.0/gobject/gclosure.h +82 -82
- package/include/glib-2.0/gobject/genums.h +43 -43
- package/include/glib-2.0/gobject/gmarshal.h +2 -2
- package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
- package/include/glib-2.0/gobject/gobject.h +97 -97
- package/include/glib-2.0/gobject/gobjectnotifyqueue.c +12 -12
- package/include/glib-2.0/gobject/gparam.h +96 -96
- package/include/glib-2.0/gobject/gparamspecs.h +157 -157
- package/include/glib-2.0/gobject/gsignal.h +189 -189
- package/include/glib-2.0/gobject/gsourceclosure.h +1 -1
- package/include/glib-2.0/gobject/gtype.h +139 -139
- package/include/glib-2.0/gobject/gtypemodule.h +5 -5
- package/include/glib-2.0/gobject/gtypeplugin.h +32 -32
- package/include/glib-2.0/gobject/gvalue.h +34 -34
- package/include/glib-2.0/gobject/gvaluearray.h +21 -21
- package/include/glib-2.0/gobject/gvaluecollector.h +117 -117
- package/include/glib-2.0/gobject/gvaluetypes.h +74 -74
- package/include/harfbuzz/hb-font.h +22 -0
- package/include/harfbuzz/hb-ot-layout.h +11 -0
- package/include/harfbuzz/hb-version.h +2 -2
- package/include/libimagequant.h +4 -0
- package/include/vips/VError8.h +3 -4
- package/include/vips/util.h +15 -1
- package/package.json +1 -1
- package/versions.json +5 -5
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* This library is distributed in the hope that it will be useful,
|
|
12
12
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
14
14
|
* Lesser General Public License for more details.
|
|
15
15
|
*
|
|
16
16
|
* You should have received a copy of the GNU Lesser General Public
|
|
@@ -52,48 +52,48 @@ GLIB_AVAILABLE_IN_ALL
|
|
|
52
52
|
void g_slist_free (GSList *list);
|
|
53
53
|
GLIB_AVAILABLE_IN_ALL
|
|
54
54
|
void g_slist_free_1 (GSList *list);
|
|
55
|
-
#define
|
|
55
|
+
#define g_slist_free1 g_slist_free_1
|
|
56
56
|
GLIB_AVAILABLE_IN_ALL
|
|
57
57
|
void g_slist_free_full (GSList *list,
|
|
58
|
-
|
|
58
|
+
GDestroyNotify free_func);
|
|
59
59
|
GLIB_AVAILABLE_IN_ALL
|
|
60
60
|
GSList* g_slist_append (GSList *list,
|
|
61
|
-
|
|
61
|
+
gpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
|
62
62
|
GLIB_AVAILABLE_IN_ALL
|
|
63
63
|
GSList* g_slist_prepend (GSList *list,
|
|
64
|
-
|
|
64
|
+
gpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
|
65
65
|
GLIB_AVAILABLE_IN_ALL
|
|
66
66
|
GSList* g_slist_insert (GSList *list,
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
gpointer data,
|
|
68
|
+
gint position) G_GNUC_WARN_UNUSED_RESULT;
|
|
69
69
|
GLIB_AVAILABLE_IN_ALL
|
|
70
70
|
GSList* g_slist_insert_sorted (GSList *list,
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
gpointer data,
|
|
72
|
+
GCompareFunc func) G_GNUC_WARN_UNUSED_RESULT;
|
|
73
73
|
GLIB_AVAILABLE_IN_ALL
|
|
74
74
|
GSList* g_slist_insert_sorted_with_data (GSList *list,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
gpointer data,
|
|
76
|
+
GCompareDataFunc func,
|
|
77
|
+
gpointer user_data) G_GNUC_WARN_UNUSED_RESULT;
|
|
78
78
|
GLIB_AVAILABLE_IN_ALL
|
|
79
79
|
GSList* g_slist_insert_before (GSList *slist,
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
GSList *sibling,
|
|
81
|
+
gpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
|
82
82
|
GLIB_AVAILABLE_IN_ALL
|
|
83
83
|
GSList* g_slist_concat (GSList *list1,
|
|
84
|
-
|
|
84
|
+
GSList *list2) G_GNUC_WARN_UNUSED_RESULT;
|
|
85
85
|
GLIB_AVAILABLE_IN_ALL
|
|
86
86
|
GSList* g_slist_remove (GSList *list,
|
|
87
|
-
|
|
87
|
+
gconstpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
|
88
88
|
GLIB_AVAILABLE_IN_ALL
|
|
89
89
|
GSList* g_slist_remove_all (GSList *list,
|
|
90
|
-
|
|
90
|
+
gconstpointer data) G_GNUC_WARN_UNUSED_RESULT;
|
|
91
91
|
GLIB_AVAILABLE_IN_ALL
|
|
92
92
|
GSList* g_slist_remove_link (GSList *list,
|
|
93
|
-
|
|
93
|
+
GSList *link_) G_GNUC_WARN_UNUSED_RESULT;
|
|
94
94
|
GLIB_AVAILABLE_IN_ALL
|
|
95
95
|
GSList* g_slist_delete_link (GSList *list,
|
|
96
|
-
|
|
96
|
+
GSList *link_) G_GNUC_WARN_UNUSED_RESULT;
|
|
97
97
|
GLIB_AVAILABLE_IN_ALL
|
|
98
98
|
GSList* g_slist_reverse (GSList *list) G_GNUC_WARN_UNUSED_RESULT;
|
|
99
99
|
GLIB_AVAILABLE_IN_ALL
|
|
@@ -101,42 +101,42 @@ GSList* g_slist_copy (GSList *list) G_GNUC_WARN_UN
|
|
|
101
101
|
|
|
102
102
|
GLIB_AVAILABLE_IN_2_34
|
|
103
103
|
GSList* g_slist_copy_deep (GSList *list,
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
GCopyFunc func,
|
|
105
|
+
gpointer user_data) G_GNUC_WARN_UNUSED_RESULT;
|
|
106
106
|
GLIB_AVAILABLE_IN_ALL
|
|
107
107
|
GSList* g_slist_nth (GSList *list,
|
|
108
|
-
|
|
108
|
+
guint n);
|
|
109
109
|
GLIB_AVAILABLE_IN_ALL
|
|
110
110
|
GSList* g_slist_find (GSList *list,
|
|
111
|
-
|
|
111
|
+
gconstpointer data);
|
|
112
112
|
GLIB_AVAILABLE_IN_ALL
|
|
113
113
|
GSList* g_slist_find_custom (GSList *list,
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
gconstpointer data,
|
|
115
|
+
GCompareFunc func);
|
|
116
116
|
GLIB_AVAILABLE_IN_ALL
|
|
117
117
|
gint g_slist_position (GSList *list,
|
|
118
|
-
|
|
118
|
+
GSList *llink);
|
|
119
119
|
GLIB_AVAILABLE_IN_ALL
|
|
120
120
|
gint g_slist_index (GSList *list,
|
|
121
|
-
|
|
121
|
+
gconstpointer data);
|
|
122
122
|
GLIB_AVAILABLE_IN_ALL
|
|
123
123
|
GSList* g_slist_last (GSList *list);
|
|
124
124
|
GLIB_AVAILABLE_IN_ALL
|
|
125
125
|
guint g_slist_length (GSList *list);
|
|
126
126
|
GLIB_AVAILABLE_IN_ALL
|
|
127
127
|
void g_slist_foreach (GSList *list,
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
GFunc func,
|
|
129
|
+
gpointer user_data);
|
|
130
130
|
GLIB_AVAILABLE_IN_ALL
|
|
131
131
|
GSList* g_slist_sort (GSList *list,
|
|
132
|
-
|
|
132
|
+
GCompareFunc compare_func) G_GNUC_WARN_UNUSED_RESULT;
|
|
133
133
|
GLIB_AVAILABLE_IN_ALL
|
|
134
134
|
GSList* g_slist_sort_with_data (GSList *list,
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
GCompareDataFunc compare_func,
|
|
136
|
+
gpointer user_data) G_GNUC_WARN_UNUSED_RESULT;
|
|
137
137
|
GLIB_AVAILABLE_IN_ALL
|
|
138
138
|
gpointer g_slist_nth_data (GSList *list,
|
|
139
|
-
|
|
139
|
+
guint n);
|
|
140
140
|
|
|
141
141
|
GLIB_AVAILABLE_IN_2_64
|
|
142
142
|
void g_clear_slist (GSList **slist_ptr,
|
|
@@ -159,7 +159,7 @@ void g_clear_slist (GSList **slist_ptr,
|
|
|
159
159
|
} G_STMT_END \
|
|
160
160
|
GLIB_AVAILABLE_MACRO_IN_2_64
|
|
161
161
|
|
|
162
|
-
#define g_slist_next(slist)
|
|
162
|
+
#define g_slist_next(slist) ((slist) ? (((GSList *)(slist))->next) : NULL)
|
|
163
163
|
|
|
164
164
|
G_END_DECLS
|
|
165
165
|
|
|
@@ -307,7 +307,7 @@ gboolean g_spawn_check_wait_status (gint wait_status,
|
|
|
307
307
|
|
|
308
308
|
GLIB_DEPRECATED_IN_2_70_FOR(g_spawn_check_wait_status)
|
|
309
309
|
gboolean g_spawn_check_exit_status (gint wait_status,
|
|
310
|
-
|
|
310
|
+
GError **error);
|
|
311
311
|
|
|
312
312
|
GLIB_AVAILABLE_IN_ALL
|
|
313
313
|
void g_spawn_close_pid (GPid pid);
|
|
@@ -57,7 +57,13 @@ typedef struct stat GStatBuf;
|
|
|
57
57
|
|
|
58
58
|
#endif
|
|
59
59
|
|
|
60
|
-
#
|
|
60
|
+
#ifndef __GI_SCANNER__
|
|
61
|
+
# if defined (G_OS_UNIX) && !defined (G_STDIO_WRAP_ON_UNIX)
|
|
62
|
+
# define G_STDIO_LIBC_DIRECT
|
|
63
|
+
# endif
|
|
64
|
+
#endif
|
|
65
|
+
|
|
66
|
+
#ifdef G_STDIO_LIBC_DIRECT
|
|
61
67
|
|
|
62
68
|
/* Just pass on to the system functions, so there's no potential for data
|
|
63
69
|
* format mismatches, especially with large file interfaces.
|
|
@@ -85,7 +91,7 @@ typedef struct stat GStatBuf;
|
|
|
85
91
|
|
|
86
92
|
GLIB_AVAILABLE_IN_ALL
|
|
87
93
|
int g_access (const gchar *filename,
|
|
88
|
-
|
|
94
|
+
int mode);
|
|
89
95
|
|
|
90
96
|
GLIB_AVAILABLE_IN_ALL
|
|
91
97
|
int g_chdir (const gchar *path);
|
|
@@ -96,7 +102,7 @@ int g_unlink (const gchar *filename);
|
|
|
96
102
|
GLIB_AVAILABLE_IN_ALL
|
|
97
103
|
int g_rmdir (const gchar *filename);
|
|
98
104
|
|
|
99
|
-
#else /* !
|
|
105
|
+
#else /* ! G_STDIO_LIBC_DIRECT */
|
|
100
106
|
|
|
101
107
|
/* Wrappers for C library functions that take pathname arguments. On
|
|
102
108
|
* Unix, the pathname is a file name as it literally is in the file
|
|
@@ -110,11 +116,11 @@ int g_rmdir (const gchar *filename);
|
|
|
110
116
|
|
|
111
117
|
GLIB_AVAILABLE_IN_ALL
|
|
112
118
|
int g_access (const gchar *filename,
|
|
113
|
-
|
|
119
|
+
int mode);
|
|
114
120
|
|
|
115
121
|
GLIB_AVAILABLE_IN_ALL
|
|
116
122
|
int g_chmod (const gchar *filename,
|
|
117
|
-
|
|
123
|
+
int mode);
|
|
118
124
|
|
|
119
125
|
GLIB_AVAILABLE_IN_ALL
|
|
120
126
|
int g_open (const gchar *filename,
|
|
@@ -165,15 +171,15 @@ FILE *g_freopen (const gchar *filename,
|
|
|
165
171
|
GLIB_AVAILABLE_IN_2_64
|
|
166
172
|
gint g_fsync (gint fd);
|
|
167
173
|
|
|
168
|
-
struct utimbuf;
|
|
169
|
-
|
|
170
|
-
|
|
174
|
+
struct utimbuf; /* Don't need the real definition of struct utimbuf when just
|
|
175
|
+
* including this header.
|
|
176
|
+
*/
|
|
171
177
|
|
|
172
178
|
GLIB_AVAILABLE_IN_ALL
|
|
173
179
|
int g_utime (const gchar *filename,
|
|
174
|
-
|
|
180
|
+
struct utimbuf *utb);
|
|
175
181
|
|
|
176
|
-
#endif /*
|
|
182
|
+
#endif /* G_STDIO_LIBC_DIRECT */
|
|
177
183
|
|
|
178
184
|
GLIB_AVAILABLE_IN_2_36
|
|
179
185
|
gboolean g_close (gint fd,
|
|
@@ -104,40 +104,40 @@ gint g_ascii_xdigit_value (gchar c) G_GNUC_CONST;
|
|
|
104
104
|
/* String utility functions that modify a string argument or
|
|
105
105
|
* return a constant string that must not be freed.
|
|
106
106
|
*/
|
|
107
|
-
#define
|
|
107
|
+
#define G_STR_DELIMITERS "_-|> <."
|
|
108
108
|
GLIB_AVAILABLE_IN_ALL
|
|
109
|
-
gchar*
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
gchar* g_strdelimit (gchar *string,
|
|
110
|
+
const gchar *delimiters,
|
|
111
|
+
gchar new_delimiter);
|
|
112
112
|
GLIB_AVAILABLE_IN_ALL
|
|
113
|
-
gchar*
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
gchar* g_strcanon (gchar *string,
|
|
114
|
+
const gchar *valid_chars,
|
|
115
|
+
gchar substitutor);
|
|
116
116
|
GLIB_AVAILABLE_IN_ALL
|
|
117
|
-
const gchar * g_strerror (gint
|
|
117
|
+
const gchar * g_strerror (gint errnum) G_GNUC_CONST;
|
|
118
118
|
GLIB_AVAILABLE_IN_ALL
|
|
119
|
-
const gchar * g_strsignal (gint
|
|
119
|
+
const gchar * g_strsignal (gint signum) G_GNUC_CONST;
|
|
120
120
|
GLIB_AVAILABLE_IN_ALL
|
|
121
|
-
gchar *
|
|
121
|
+
gchar * g_strreverse (gchar *string);
|
|
122
122
|
GLIB_AVAILABLE_IN_ALL
|
|
123
|
-
gsize
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
gsize g_strlcpy (gchar *dest,
|
|
124
|
+
const gchar *src,
|
|
125
|
+
gsize dest_size);
|
|
126
126
|
GLIB_AVAILABLE_IN_ALL
|
|
127
|
-
gsize
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
gsize g_strlcat (gchar *dest,
|
|
128
|
+
const gchar *src,
|
|
129
|
+
gsize dest_size);
|
|
130
130
|
GLIB_AVAILABLE_IN_ALL
|
|
131
131
|
gchar * g_strstr_len (const gchar *haystack,
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
gssize haystack_len,
|
|
133
|
+
const gchar *needle);
|
|
134
134
|
GLIB_AVAILABLE_IN_ALL
|
|
135
135
|
gchar * g_strrstr (const gchar *haystack,
|
|
136
|
-
|
|
136
|
+
const gchar *needle);
|
|
137
137
|
GLIB_AVAILABLE_IN_ALL
|
|
138
138
|
gchar * g_strrstr_len (const gchar *haystack,
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
gssize haystack_len,
|
|
140
|
+
const gchar *needle);
|
|
141
141
|
|
|
142
142
|
GLIB_AVAILABLE_IN_ALL
|
|
143
143
|
gboolean (g_str_has_suffix) (const gchar *str,
|
|
@@ -211,32 +211,32 @@ gboolean (g_str_has_prefix) (const gchar *str,
|
|
|
211
211
|
/* String to/from double conversion functions */
|
|
212
212
|
|
|
213
213
|
GLIB_AVAILABLE_IN_ALL
|
|
214
|
-
gdouble
|
|
215
|
-
|
|
214
|
+
gdouble g_strtod (const gchar *nptr,
|
|
215
|
+
gchar **endptr);
|
|
216
216
|
GLIB_AVAILABLE_IN_ALL
|
|
217
|
-
gdouble
|
|
218
|
-
|
|
217
|
+
gdouble g_ascii_strtod (const gchar *nptr,
|
|
218
|
+
gchar **endptr);
|
|
219
219
|
GLIB_AVAILABLE_IN_ALL
|
|
220
|
-
guint64
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
guint64 g_ascii_strtoull (const gchar *nptr,
|
|
221
|
+
gchar **endptr,
|
|
222
|
+
guint base);
|
|
223
223
|
GLIB_AVAILABLE_IN_ALL
|
|
224
|
-
gint64
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
gint64 g_ascii_strtoll (const gchar *nptr,
|
|
225
|
+
gchar **endptr,
|
|
226
|
+
guint base);
|
|
227
227
|
/* 29 bytes should enough for all possible values that
|
|
228
228
|
* g_ascii_dtostr can produce.
|
|
229
229
|
* Then add 10 for good measure */
|
|
230
230
|
#define G_ASCII_DTOSTR_BUF_SIZE (29 + 10)
|
|
231
231
|
GLIB_AVAILABLE_IN_ALL
|
|
232
232
|
gchar * g_ascii_dtostr (gchar *buffer,
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
gint buf_len,
|
|
234
|
+
gdouble d);
|
|
235
235
|
GLIB_AVAILABLE_IN_ALL
|
|
236
236
|
gchar * g_ascii_formatd (gchar *buffer,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
gint buf_len,
|
|
238
|
+
const gchar *format,
|
|
239
|
+
gdouble d);
|
|
240
240
|
|
|
241
241
|
/* removes leading spaces */
|
|
242
242
|
GLIB_AVAILABLE_IN_ALL
|
|
@@ -245,21 +245,21 @@ gchar* g_strchug (gchar *string);
|
|
|
245
245
|
GLIB_AVAILABLE_IN_ALL
|
|
246
246
|
gchar* g_strchomp (gchar *string);
|
|
247
247
|
/* removes leading & trailing spaces */
|
|
248
|
-
#define g_strstrip( string )
|
|
248
|
+
#define g_strstrip( string ) g_strchomp (g_strchug (string))
|
|
249
249
|
|
|
250
250
|
GLIB_AVAILABLE_IN_ALL
|
|
251
251
|
gint g_ascii_strcasecmp (const gchar *s1,
|
|
252
|
-
|
|
252
|
+
const gchar *s2);
|
|
253
253
|
GLIB_AVAILABLE_IN_ALL
|
|
254
254
|
gint g_ascii_strncasecmp (const gchar *s1,
|
|
255
|
-
|
|
256
|
-
|
|
255
|
+
const gchar *s2,
|
|
256
|
+
gsize n);
|
|
257
257
|
GLIB_AVAILABLE_IN_ALL
|
|
258
258
|
gchar* g_ascii_strdown (const gchar *str,
|
|
259
|
-
|
|
259
|
+
gssize len) G_GNUC_MALLOC;
|
|
260
260
|
GLIB_AVAILABLE_IN_ALL
|
|
261
261
|
gchar* g_ascii_strup (const gchar *str,
|
|
262
|
-
|
|
262
|
+
gssize len) G_GNUC_MALLOC;
|
|
263
263
|
|
|
264
264
|
GLIB_AVAILABLE_IN_2_40
|
|
265
265
|
gboolean g_str_is_ascii (const gchar *str);
|
|
@@ -281,25 +281,25 @@ gchar* g_strup (gchar *string);
|
|
|
281
281
|
* ought to be freed with g_free from the caller at some point.
|
|
282
282
|
*/
|
|
283
283
|
GLIB_AVAILABLE_IN_ALL
|
|
284
|
-
gchar*
|
|
284
|
+
gchar* (g_strdup) (const gchar *str) G_GNUC_MALLOC;
|
|
285
285
|
GLIB_AVAILABLE_IN_ALL
|
|
286
|
-
gchar*
|
|
287
|
-
|
|
286
|
+
gchar* g_strdup_printf (const gchar *format,
|
|
287
|
+
...) G_GNUC_PRINTF (1, 2) G_GNUC_MALLOC;
|
|
288
288
|
GLIB_AVAILABLE_IN_ALL
|
|
289
|
-
gchar*
|
|
290
|
-
|
|
289
|
+
gchar* g_strdup_vprintf (const gchar *format,
|
|
290
|
+
va_list args) G_GNUC_PRINTF(1, 0) G_GNUC_MALLOC;
|
|
291
291
|
GLIB_AVAILABLE_IN_ALL
|
|
292
|
-
gchar*
|
|
293
|
-
|
|
292
|
+
gchar* g_strndup (const gchar *str,
|
|
293
|
+
gsize n) G_GNUC_MALLOC;
|
|
294
294
|
GLIB_AVAILABLE_IN_ALL
|
|
295
|
-
gchar*
|
|
296
|
-
|
|
295
|
+
gchar* g_strnfill (gsize length,
|
|
296
|
+
gchar fill_char) G_GNUC_MALLOC;
|
|
297
297
|
GLIB_AVAILABLE_IN_ALL
|
|
298
|
-
gchar*
|
|
299
|
-
|
|
298
|
+
gchar* g_strconcat (const gchar *string1,
|
|
299
|
+
...) G_GNUC_MALLOC G_GNUC_NULL_TERMINATED;
|
|
300
300
|
GLIB_AVAILABLE_IN_ALL
|
|
301
|
-
gchar* g_strjoin
|
|
302
|
-
|
|
301
|
+
gchar* g_strjoin (const gchar *separator,
|
|
302
|
+
...) G_GNUC_MALLOC G_GNUC_NULL_TERMINATED;
|
|
303
303
|
|
|
304
304
|
#if G_GNUC_CHECK_VERSION(2, 0)
|
|
305
305
|
#ifndef __GTK_DOC_IGNORE__
|
|
@@ -332,7 +332,7 @@ gchar* g_strcompress (const gchar *source) G_GNUC_MALLOC;
|
|
|
332
332
|
|
|
333
333
|
GLIB_AVAILABLE_IN_ALL
|
|
334
334
|
gchar* g_strescape (const gchar *source,
|
|
335
|
-
|
|
335
|
+
const gchar *exceptions) G_GNUC_MALLOC;
|
|
336
336
|
|
|
337
337
|
GLIB_DEPRECATED_IN_2_68_FOR (g_memdup2)
|
|
338
338
|
gpointer g_memdup (gconstpointer mem,
|
|
@@ -353,16 +353,16 @@ gpointer g_memdup2 (gconstpointer mem,
|
|
|
353
353
|
*/
|
|
354
354
|
typedef gchar** GStrv;
|
|
355
355
|
GLIB_AVAILABLE_IN_ALL
|
|
356
|
-
gchar**
|
|
357
|
-
|
|
358
|
-
|
|
356
|
+
gchar** g_strsplit (const gchar *string,
|
|
357
|
+
const gchar *delimiter,
|
|
358
|
+
gint max_tokens);
|
|
359
359
|
GLIB_AVAILABLE_IN_ALL
|
|
360
|
-
gchar **
|
|
361
|
-
|
|
362
|
-
|
|
360
|
+
gchar ** g_strsplit_set (const gchar *string,
|
|
361
|
+
const gchar *delimiters,
|
|
362
|
+
gint max_tokens);
|
|
363
363
|
GLIB_AVAILABLE_IN_ALL
|
|
364
364
|
gchar* g_strjoinv (const gchar *separator,
|
|
365
|
-
|
|
365
|
+
gchar **str_array) G_GNUC_MALLOC;
|
|
366
366
|
GLIB_AVAILABLE_IN_ALL
|
|
367
367
|
void g_strfreev (gchar **str_array);
|
|
368
368
|
GLIB_AVAILABLE_IN_ALL
|
|
@@ -461,7 +461,7 @@ void g_test_disable_crash_reporting (void);
|
|
|
461
461
|
* Since: 2.16
|
|
462
462
|
*/
|
|
463
463
|
#define g_test_add(testpath, Fixture, tdata, fsetup, ftest, fteardown) \
|
|
464
|
-
|
|
464
|
+
G_STMT_START { \
|
|
465
465
|
void (*add_vtable) (const char*, \
|
|
466
466
|
gsize, \
|
|
467
467
|
gconstpointer, \
|
|
@@ -470,7 +470,7 @@ void g_test_disable_crash_reporting (void);
|
|
|
470
470
|
void (*) (Fixture*, gconstpointer)) = (void (*) (const gchar *, gsize, gconstpointer, void (*) (Fixture*, gconstpointer), void (*) (Fixture*, gconstpointer), void (*) (Fixture*, gconstpointer))) g_test_add_vtable; \
|
|
471
471
|
add_vtable \
|
|
472
472
|
(testpath, sizeof (Fixture), tdata, fsetup, ftest, fteardown); \
|
|
473
|
-
|
|
473
|
+
} G_STMT_END
|
|
474
474
|
|
|
475
475
|
/* add test messages to the test report */
|
|
476
476
|
GLIB_AVAILABLE_IN_ALL
|
|
@@ -39,26 +39,26 @@ G_BEGIN_DECLS
|
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
41
|
/* microseconds per second */
|
|
42
|
-
typedef struct _GTimer
|
|
42
|
+
typedef struct _GTimer GTimer;
|
|
43
43
|
|
|
44
44
|
#define G_USEC_PER_SEC 1000000
|
|
45
45
|
#define G_NSEC_PER_SEC G_GUINT64_CONSTANT(1000000000) GLIB_AVAILABLE_MACRO_IN_2_88
|
|
46
46
|
|
|
47
47
|
GLIB_AVAILABLE_IN_ALL
|
|
48
|
-
GTimer* g_timer_new
|
|
48
|
+
GTimer* g_timer_new (void);
|
|
49
49
|
GLIB_AVAILABLE_IN_ALL
|
|
50
|
-
void
|
|
50
|
+
void g_timer_destroy (GTimer *timer);
|
|
51
51
|
GLIB_AVAILABLE_IN_ALL
|
|
52
|
-
void
|
|
52
|
+
void g_timer_start (GTimer *timer);
|
|
53
53
|
GLIB_AVAILABLE_IN_ALL
|
|
54
|
-
void
|
|
54
|
+
void g_timer_stop (GTimer *timer);
|
|
55
55
|
GLIB_AVAILABLE_IN_ALL
|
|
56
|
-
void
|
|
56
|
+
void g_timer_reset (GTimer *timer);
|
|
57
57
|
GLIB_AVAILABLE_IN_ALL
|
|
58
|
-
void
|
|
58
|
+
void g_timer_continue (GTimer *timer);
|
|
59
59
|
GLIB_AVAILABLE_IN_ALL
|
|
60
60
|
gdouble g_timer_elapsed (GTimer *timer,
|
|
61
|
-
|
|
61
|
+
gulong *microseconds);
|
|
62
62
|
GLIB_AVAILABLE_IN_2_62
|
|
63
63
|
gboolean g_timer_is_active (GTimer *timer);
|
|
64
64
|
|
|
@@ -71,7 +71,7 @@ void g_time_val_add (GTimeVal *time_,
|
|
|
71
71
|
glong microseconds);
|
|
72
72
|
GLIB_DEPRECATED_IN_2_62_FOR(g_date_time_new_from_iso8601)
|
|
73
73
|
gboolean g_time_val_from_iso8601 (const gchar *iso_date,
|
|
74
|
-
|
|
74
|
+
GTimeVal *time_);
|
|
75
75
|
GLIB_DEPRECATED_IN_2_62_FOR(g_date_time_format)
|
|
76
76
|
gchar* g_time_val_to_iso8601 (GTimeVal *time_) G_GNUC_MALLOC;
|
|
77
77
|
G_GNUC_END_IGNORE_DEPRECATIONS
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* This library is distributed in the hope that it will be useful,
|
|
12
12
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
14
14
|
* Lesser General Public License for more details.
|
|
15
15
|
*
|
|
16
16
|
* You should have received a copy of the GNU Lesser General Public
|
|
@@ -137,8 +137,8 @@ gboolean g_tree_lookup_extended (GTree *tree,
|
|
|
137
137
|
gpointer *value);
|
|
138
138
|
GLIB_AVAILABLE_IN_ALL
|
|
139
139
|
void g_tree_foreach (GTree *tree,
|
|
140
|
-
GTraverseFunc
|
|
141
|
-
gpointer
|
|
140
|
+
GTraverseFunc func,
|
|
141
|
+
gpointer user_data);
|
|
142
142
|
GLIB_AVAILABLE_IN_2_68
|
|
143
143
|
void g_tree_foreach_node (GTree *tree,
|
|
144
144
|
GTraverseNodeFunc func,
|