@@ -2195,66 +2195,6 @@ pub struct _GStatBuf {
2195
2195
2196
2196
pub type GStatBuf = _GStatBuf ;
2197
2197
2198
- #[ derive( Copy , Clone ) ]
2199
- #[ repr( C ) ]
2200
- pub struct GStaticMutex {
2201
- pub mutex : * mut GMutex ,
2202
- }
2203
-
2204
- impl :: std:: fmt:: Debug for GStaticMutex {
2205
- fn fmt ( & self , f : & mut :: std:: fmt:: Formatter ) -> :: std:: fmt:: Result {
2206
- f. debug_struct ( & format ! ( "GStaticMutex @ {self:p}" ) )
2207
- . field ( "mutex" , & self . mutex )
2208
- . finish ( )
2209
- }
2210
- }
2211
-
2212
- #[ derive( Copy , Clone ) ]
2213
- #[ repr( C ) ]
2214
- pub struct GStaticPrivate {
2215
- pub index : c_uint ,
2216
- }
2217
-
2218
- impl :: std:: fmt:: Debug for GStaticPrivate {
2219
- fn fmt ( & self , f : & mut :: std:: fmt:: Formatter ) -> :: std:: fmt:: Result {
2220
- f. debug_struct ( & format ! ( "GStaticPrivate @ {self:p}" ) )
2221
- . finish ( )
2222
- }
2223
- }
2224
-
2225
- #[ derive( Copy , Clone ) ]
2226
- #[ repr( C ) ]
2227
- pub struct GStaticRWLock {
2228
- pub mutex : GStaticMutex ,
2229
- pub read_cond : * mut GCond ,
2230
- pub write_cond : * mut GCond ,
2231
- pub read_counter : c_uint ,
2232
- pub have_writer : gboolean ,
2233
- pub want_to_read : c_uint ,
2234
- pub want_to_write : c_uint ,
2235
- }
2236
-
2237
- impl :: std:: fmt:: Debug for GStaticRWLock {
2238
- fn fmt ( & self , f : & mut :: std:: fmt:: Formatter ) -> :: std:: fmt:: Result {
2239
- f. debug_struct ( & format ! ( "GStaticRWLock @ {self:p}" ) )
2240
- . finish ( )
2241
- }
2242
- }
2243
-
2244
- #[ derive( Copy , Clone ) ]
2245
- #[ repr( C ) ]
2246
- pub struct GStaticRecMutex {
2247
- pub mutex : GStaticMutex ,
2248
- pub depth : c_uint ,
2249
- }
2250
-
2251
- impl :: std:: fmt:: Debug for GStaticRecMutex {
2252
- fn fmt ( & self , f : & mut :: std:: fmt:: Formatter ) -> :: std:: fmt:: Result {
2253
- f. debug_struct ( & format ! ( "GStaticRecMutex @ {self:p}" ) )
2254
- . finish ( )
2255
- }
2256
- }
2257
-
2258
2198
#[ derive( Copy , Clone ) ]
2259
2199
#[ repr( C ) ]
2260
2200
pub struct GString {
@@ -5181,44 +5121,18 @@ extern "C" {
5181
5121
//=========================================================================
5182
5122
// GStaticMutex
5183
5123
//=========================================================================
5184
- pub fn g_static_mutex_free ( mutex : * mut GStaticMutex ) ;
5185
- pub fn g_static_mutex_get_mutex_impl ( mutex : * mut GStaticMutex ) -> * mut GMutex ;
5186
- pub fn g_static_mutex_init ( mutex : * mut GStaticMutex ) ;
5187
5124
5188
5125
//=========================================================================
5189
5126
// GStaticPrivate
5190
5127
//=========================================================================
5191
- pub fn g_static_private_free ( private_key : * mut GStaticPrivate ) ;
5192
- pub fn g_static_private_get ( private_key : * mut GStaticPrivate ) -> gpointer ;
5193
- pub fn g_static_private_init ( private_key : * mut GStaticPrivate ) ;
5194
- pub fn g_static_private_set (
5195
- private_key : * mut GStaticPrivate ,
5196
- data : gpointer ,
5197
- notify : GDestroyNotify ,
5198
- ) ;
5199
5128
5200
5129
//=========================================================================
5201
5130
// GStaticRWLock
5202
5131
//=========================================================================
5203
- pub fn g_static_rw_lock_free ( lock : * mut GStaticRWLock ) ;
5204
- pub fn g_static_rw_lock_init ( lock : * mut GStaticRWLock ) ;
5205
- pub fn g_static_rw_lock_reader_lock ( lock : * mut GStaticRWLock ) ;
5206
- pub fn g_static_rw_lock_reader_trylock ( lock : * mut GStaticRWLock ) -> gboolean ;
5207
- pub fn g_static_rw_lock_reader_unlock ( lock : * mut GStaticRWLock ) ;
5208
- pub fn g_static_rw_lock_writer_lock ( lock : * mut GStaticRWLock ) ;
5209
- pub fn g_static_rw_lock_writer_trylock ( lock : * mut GStaticRWLock ) -> gboolean ;
5210
- pub fn g_static_rw_lock_writer_unlock ( lock : * mut GStaticRWLock ) ;
5211
5132
5212
5133
//=========================================================================
5213
5134
// GStaticRecMutex
5214
5135
//=========================================================================
5215
- pub fn g_static_rec_mutex_free ( mutex : * mut GStaticRecMutex ) ;
5216
- pub fn g_static_rec_mutex_init ( mutex : * mut GStaticRecMutex ) ;
5217
- pub fn g_static_rec_mutex_lock ( mutex : * mut GStaticRecMutex ) ;
5218
- pub fn g_static_rec_mutex_lock_full ( mutex : * mut GStaticRecMutex , depth : c_uint ) ;
5219
- pub fn g_static_rec_mutex_trylock ( mutex : * mut GStaticRecMutex ) -> gboolean ;
5220
- pub fn g_static_rec_mutex_unlock ( mutex : * mut GStaticRecMutex ) ;
5221
- pub fn g_static_rec_mutex_unlock_full ( mutex : * mut GStaticRecMutex ) -> c_uint ;
5222
5136
5223
5137
//=========================================================================
5224
5138
// GString
0 commit comments