![]() |
![]() |
![]() |
LibRhythmCat Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <rclib.h> extern const gchar *rclib_build_date; extern const gchar *rclib_build_time; void rclib_exit (); gboolean rclib_init (gint *argc
,gchar **argv[]
,const gchar *dir
,GError **error
); extern const guint rclib_major_version; extern const guint rclib_micro_version; extern const guint rclib_minor_version;
The main module is used for general library initialization and library
information access, it will initialize the core, database, player
schedulor, lyric processor, and connect some signals to callbacks for
update the metadata in the database. If you do not want to initialize
the modules by yourself, just using function rclib_init()
.
gboolean rclib_init (gint *argc
,gchar **argv[]
,const gchar *dir
,GError **error
);
Initialize the library, please call this function before using any other library functions. If you want to initialize the library by yourself, you should call the initializion function in each module.
|
address of the argc parameter of
your main() function (or 0 if argv is NULL ). This will be changed if
any arguments were handled. [inout]
|
|
address of the
argv parameter of main() , or NULL . [array length=argc][inout][allow-none]
|
|
the directory of the user data |
|
return location for a GError, or NULL
|
Returns : |
Whether the initializion succeeded. |