~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to glib/goption.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * Boston, MA 02111-1307, USA.
19
19
 */
20
20
 
21
 
#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
 
21
#ifndef __G_OPTION_H__
 
22
#define __G_OPTION_H__
 
23
 
 
24
#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
22
25
#error "Only <glib.h> can be included directly."
23
26
#endif
24
27
 
25
 
#ifndef __G_OPTION_H__
26
 
#define __G_OPTION_H__
27
 
 
28
28
#include <glib/gerror.h>
29
29
#include <glib/gquark.h>
30
30
 
209
209
  G_OPTION_ERROR_FAILED
210
210
} GOptionError;
211
211
 
 
212
GLIB_AVAILABLE_IN_ALL
212
213
GQuark g_option_error_quark (void);
213
214
 
214
215
/**
307
308
 */
308
309
#define G_OPTION_REMAINING ""
309
310
 
 
311
GLIB_AVAILABLE_IN_ALL
310
312
GOptionContext *g_option_context_new              (const gchar         *parameter_string);
 
313
GLIB_AVAILABLE_IN_ALL
311
314
void            g_option_context_set_summary      (GOptionContext      *context,
312
315
                                                   const gchar         *summary);
 
316
GLIB_AVAILABLE_IN_ALL
313
317
const gchar *   g_option_context_get_summary      (GOptionContext     *context);
 
318
GLIB_AVAILABLE_IN_ALL
314
319
void            g_option_context_set_description  (GOptionContext      *context,
315
320
                                                   const gchar         *description);
 
321
GLIB_AVAILABLE_IN_ALL
316
322
const gchar *   g_option_context_get_description  (GOptionContext     *context);
 
323
GLIB_AVAILABLE_IN_ALL
317
324
void            g_option_context_free             (GOptionContext      *context);
 
325
GLIB_AVAILABLE_IN_ALL
318
326
void            g_option_context_set_help_enabled (GOptionContext      *context,
319
327
                                                   gboolean             help_enabled);
 
328
GLIB_AVAILABLE_IN_ALL
320
329
gboolean        g_option_context_get_help_enabled (GOptionContext      *context);
 
330
GLIB_AVAILABLE_IN_ALL
321
331
void            g_option_context_set_ignore_unknown_options (GOptionContext *context,
322
332
                                                             gboolean        ignore_unknown);
 
333
GLIB_AVAILABLE_IN_ALL
323
334
gboolean        g_option_context_get_ignore_unknown_options (GOptionContext *context);
324
335
 
 
336
GLIB_AVAILABLE_IN_ALL
325
337
void            g_option_context_add_main_entries (GOptionContext      *context,
326
338
                                                   const GOptionEntry  *entries,
327
339
                                                   const gchar         *translation_domain);
 
340
GLIB_AVAILABLE_IN_ALL
328
341
gboolean        g_option_context_parse            (GOptionContext      *context,
329
342
                                                   gint                *argc,
330
343
                                                   gchar             ***argv,
331
344
                                                   GError             **error);
 
345
GLIB_AVAILABLE_IN_ALL
332
346
void            g_option_context_set_translate_func (GOptionContext     *context,
333
347
                                                     GTranslateFunc      func,
334
348
                                                     gpointer            data,
335
349
                                                     GDestroyNotify      destroy_notify);
 
350
GLIB_AVAILABLE_IN_ALL
336
351
void            g_option_context_set_translation_domain (GOptionContext  *context,
337
352
                                                         const gchar     *domain);
338
353
 
 
354
GLIB_AVAILABLE_IN_ALL
339
355
void            g_option_context_add_group      (GOptionContext *context,
340
356
                                                 GOptionGroup   *group);
 
357
GLIB_AVAILABLE_IN_ALL
341
358
void          g_option_context_set_main_group (GOptionContext *context,
342
359
                                               GOptionGroup   *group);
 
360
GLIB_AVAILABLE_IN_ALL
343
361
GOptionGroup *g_option_context_get_main_group (GOptionContext *context);
 
362
GLIB_AVAILABLE_IN_ALL
344
363
gchar        *g_option_context_get_help       (GOptionContext *context,
345
364
                                               gboolean        main_help,
346
365
                                               GOptionGroup   *group);
347
366
 
 
367
GLIB_AVAILABLE_IN_ALL
348
368
GOptionGroup *g_option_group_new                    (const gchar        *name,
349
369
                                                     const gchar        *description,
350
370
                                                     const gchar        *help_description,
351
371
                                                     gpointer            user_data,
352
372
                                                     GDestroyNotify      destroy);
 
373
GLIB_AVAILABLE_IN_ALL
353
374
void          g_option_group_set_parse_hooks        (GOptionGroup       *group,
354
375
                                                     GOptionParseFunc    pre_parse_func,
355
376
                                                     GOptionParseFunc    post_parse_func);
 
377
GLIB_AVAILABLE_IN_ALL
356
378
void          g_option_group_set_error_hook         (GOptionGroup       *group,
357
379
                                                     GOptionErrorFunc    error_func);
 
380
GLIB_AVAILABLE_IN_ALL
358
381
void          g_option_group_free                   (GOptionGroup       *group);
 
382
GLIB_AVAILABLE_IN_ALL
359
383
void          g_option_group_add_entries            (GOptionGroup       *group,
360
384
                                                     const GOptionEntry *entries);
 
385
GLIB_AVAILABLE_IN_ALL
361
386
void          g_option_group_set_translate_func     (GOptionGroup       *group,
362
387
                                                     GTranslateFunc      func,
363
388
                                                     gpointer            data,
364
389
                                                     GDestroyNotify      destroy_notify);
 
390
GLIB_AVAILABLE_IN_ALL
365
391
void          g_option_group_set_translation_domain (GOptionGroup       *group,
366
392
                                                     const gchar        *domain);
367
393