discident-glib

discident-glib

Synopsis

char *              discident_get_gtin_file             (GFile *directory,
                                                         GError **error);
void                discident_get_gtin_file_async       (GFile *directory,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
char *              discident_get_gtin_file_finish      (GFile *directory,
                                                         GAsyncResult *res,
                                                         GError **error);
char *              discident_get_title                 (GFile *directory,
                                                         GError **error);
void                discident_get_title_file_async      (GFile *directory,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
char *              discident_get_title_file_finish     (GFile *directory,
                                                         GAsyncResult *res,
                                                         GError **error);

Description

Details

discident_get_gtin_file ()

char *              discident_get_gtin_file             (GFile *directory,
                                                         GError **error);

Return the GTIN of the DVD location at directory. Note that this function does blocking I/O. See discident_get_gtin_file_async() for a function that does not.

directory :

a GFile representing a directory

error :

a GError.

Returns :

a string containing the GTIN for the DVD or NULL in case of errors. Free the returned string with g_free() when done.

discident_get_gtin_file_async ()

void                discident_get_gtin_file_async       (GFile *directory,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

Asynchronously gets the GTIN of the DVD tree location in directory. This function does not use the Internet.

When the operation is finished, callback will be called. You can then call discident_get_gtin_file_finish() to get the result of the operation.

directory :

a GFile representing a directory

cancellable :

optional GCancellable object, NULL to ignore.

callback :

a GAsyncReadyCallback to call when the request is satisfied

user_data :

the data to pass to callback function

discident_get_gtin_file_finish ()

char *              discident_get_gtin_file_finish      (GFile *directory,
                                                         GAsyncResult *res,
                                                         GError **error);

Finishes getting the GTIN for the DVD tree at directory. See discident_get_gtin_file_async().

directory :

a GFile representing a directory

res :

a GAsyncResult.

error :

a GError.

Returns :

the GTIN for the DVD or NULL in case of errors. Free the returned string with g_free() when done.

discident_get_title ()

char *              discident_get_title                 (GFile *directory,
                                                         GError **error);

Returns the title of the DVD located at directory. Note that this function does blocking I/O. See discident_get_title_file_async() for a function that does not.

directory :

a GFile representing a directory

error :

a GError.

Returns :

a string containing the title or NULL in case of errors. Free the returned string with g_free() when done.

discident_get_title_file_async ()

void                discident_get_title_file_async      (GFile *directory,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

Asynchronously gets the title of the DVD tree located in directory using the DiscIdent web service.

When the operation is finished, callback will be called. You can then call discident_get_title_file_finish() to get the result of the operation.

directory :

a GFile representing a directory

cancellable :

optional GCancellable object, NULL to ignore.

callback :

a GAsyncReadyCallback to call when the request is satisfied

user_data :

the data to pass to callback function

discident_get_title_file_finish ()

char *              discident_get_title_file_finish     (GFile *directory,
                                                         GAsyncResult *res,
                                                         GError **error);

Finishes a title get operation. See discident_get_title_file_async().

directory :

a GFile representing a directory

res :

a GAsyncResult.

error :

a GError.

Returns :

a string containing the title or NULL in case of errors. Free the returned string with g_free() when done.