## Libgda initialization Libgda initialization — Library initialization |

## Synopsis

    void        gda_init                        (const gchar *app_id,
                                                 const gchar *version,
                                                 gint nargs,
                                                 gchar *args[]);
    void        (*GdaInitFunc)                  (gpointer user_data);
    void        gda_main_run                    (GdaInitFunc init_func,
                                                 gpointer user_data);
    void        gda_main_quit                   (void);

## Description

## Details

### gda_init ()

    void        gda_init                        (const gchar *app_id,
                                                 const gchar *version,
                                                 gint nargs,
                                                 gchar *args[]);

Initializes the GDA library.

`app_id` : | name of the program.
`version` : | revision number of the program.
`nargs` : | number of arguments, usually argc from `main()`.
`args` : | list of arguments, usually argv from `main()`.

### GdaInitFunc ()

    void        (*GdaInitFunc)                  (gpointer user_data);

`user_data` : |

### gda_main_run ()

    void        gda_main_run                    (GdaInitFunc init_func,
                                                 gpointer user_data);

Runs the GDA main loop, which is nothing more than the Bonobo main loop, but with internally added stuff specific for applications using libgda.

You can specify a function to be called after everything has been correctly initialized (that is, for initializing your own stuff).

`init_func` : | function to be called when everything has been initialized.
`user_data` : | data to be passed to the init function.

### gda_main_quit ()

    void        gda_main_quit                   (void);

Exits the main loop.