comparison src/audacious/plugin.h @ 4433:a6a2e84e2b2e

Use mcs_handle_t directly instead of ConfigDb struct to remove the useless wrapper. A compatibility #define alias for ConfigDb added in plugin.h, at least for now.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 09 Apr 2008 15:50:37 +0300
parents 2592487d149c
children 2eee464379dc
comparison
equal deleted inserted replaced
4432:b9587e67eb02 4433:a6a2e84e2b2e
248 /* VFS Buffered File */ 248 /* VFS Buffered File */
249 VFSFile *(*vfs_buffered_file_new_from_uri)(const gchar *uri); 249 VFSFile *(*vfs_buffered_file_new_from_uri)(const gchar *uri);
250 VFSFile *(*vfs_buffered_file_release_live_fd)(VFSFile *fd); 250 VFSFile *(*vfs_buffered_file_release_live_fd)(VFSFile *fd);
251 251
252 /* ConfigDb */ 252 /* ConfigDb */
253 ConfigDb *(*cfg_db_open)(void); 253 mcs_handle_t *(*cfg_db_open)(void);
254 void (*cfg_db_close)(ConfigDb *db); 254 void (*cfg_db_close)(mcs_handle_t *db);
255 255
256 gboolean (*cfg_db_get_string)(ConfigDb *db, 256 gboolean (*cfg_db_get_string)(mcs_handle_t *db,
257 const gchar *section, 257 const gchar *section,
258 const gchar *key, 258 const gchar *key,
259 gchar **value); 259 gchar **value);
260 gboolean (*cfg_db_get_int)(ConfigDb *db, 260 gboolean (*cfg_db_get_int)(mcs_handle_t *db,
261 const gchar *section, 261 const gchar *section,
262 const gchar *key, 262 const gchar *key,
263 gint *value); 263 gint *value);
264 gboolean (*cfg_db_get_bool)(ConfigDb *db, 264 gboolean (*cfg_db_get_bool)(mcs_handle_t *db,
265 const gchar *section, 265 const gchar *section,
266 const gchar *key, 266 const gchar *key,
267 gboolean *value); 267 gboolean *value);
268 gboolean (*cfg_db_get_float)(ConfigDb *db, 268 gboolean (*cfg_db_get_float)(mcs_handle_t *db,
269 const gchar *section, 269 const gchar *section,
270 const gchar *key, 270 const gchar *key,
271 gfloat *value); 271 gfloat *value);
272 gboolean (*cfg_db_get_double)(ConfigDb *db, 272 gboolean (*cfg_db_get_double)(mcs_handle_t *db,
273 const gchar *section, 273 const gchar *section,
274 const gchar *key, 274 const gchar *key,
275 gdouble *value); 275 gdouble *value);
276 276
277 void (*cfg_db_set_string)(ConfigDb *db, 277 void (*cfg_db_set_string)(mcs_handle_t *db,
278 const gchar *section, 278 const gchar *section,
279 const gchar *key, 279 const gchar *key,
280 const gchar *value); 280 const gchar *value);
281 void (*cfg_db_set_int)(ConfigDb *db, 281 void (*cfg_db_set_int)(mcs_handle_t *db,
282 const gchar *section, 282 const gchar *section,
283 const gchar *key, 283 const gchar *key,
284 gint value); 284 gint value);
285 void (*cfg_db_set_bool)(ConfigDb *db, 285 void (*cfg_db_set_bool)(mcs_handle_t *db,
286 const gchar *section, 286 const gchar *section,
287 const gchar *key, 287 const gchar *key,
288 gboolean value); 288 gboolean value);
289 void (*cfg_db_set_float)(ConfigDb *db, 289 void (*cfg_db_set_float)(mcs_handle_t *db,
290 const gchar *section, 290 const gchar *section,
291 const gchar *key, 291 const gchar *key,
292 gfloat value); 292 gfloat value);
293 void (*cfg_db_set_double)(ConfigDb *db, 293 void (*cfg_db_set_double)(mcs_handle_t *db,
294 const gchar *section, 294 const gchar *section,
295 const gchar *key, 295 const gchar *key,
296 gdouble value); 296 gdouble value);
297 297
298 void (*cfg_db_unset_key)(ConfigDb *db, 298 void (*cfg_db_unset_key)(mcs_handle_t *db,
299 const gchar *section, 299 const gchar *section,
300 const gchar *key); 300 const gchar *key);
301 301
302 /* Tuple manipulation API */ 302 /* Tuple manipulation API */
303 Tuple *(*tuple_new)(void); 303 Tuple *(*tuple_new)(void);
689 #define aud_vfs_fget_be16 _audvt->vfs_fget_be16 689 #define aud_vfs_fget_be16 _audvt->vfs_fget_be16
690 #define aud_vfs_fget_be32 _audvt->vfs_fget_be32 690 #define aud_vfs_fget_be32 _audvt->vfs_fget_be32
691 #define aud_vfs_fget_be64 _audvt->vfs_fget_be64 691 #define aud_vfs_fget_be64 _audvt->vfs_fget_be64
692 692
693 /* XXX: deprecation warnings */ 693 /* XXX: deprecation warnings */
694 #define ConfigDb mcs_handle_t /* Alias for compatibility -- ccr */
694 #define aud_cfg_db_open _audvt->cfg_db_open 695 #define aud_cfg_db_open _audvt->cfg_db_open
695 #define aud_cfg_db_close _audvt->cfg_db_close 696 #define aud_cfg_db_close _audvt->cfg_db_close
696 #define aud_cfg_db_set_string _audvt->cfg_db_set_string 697 #define aud_cfg_db_set_string _audvt->cfg_db_set_string
697 #define aud_cfg_db_set_int _audvt->cfg_db_set_int 698 #define aud_cfg_db_set_int _audvt->cfg_db_set_int
698 #define aud_cfg_db_set_bool _audvt->cfg_db_set_bool 699 #define aud_cfg_db_set_bool _audvt->cfg_db_set_bool