![]() |
![]() |
![]() |
discident-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
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);
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.
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.
|
a GFile representing a directory |
|
optional GCancellable object, NULL to ignore.
|
|
a GAsyncReadyCallback to call when the request is satisfied |
|
the data to pass to callback function |
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()
.
|
a GFile representing a directory |
|
a GAsyncResult. |
|
a GError. |
Returns : |
the GTIN for the DVD or NULL in case of errors.
Free the returned string with g_free() when done.
|
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.
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.
|
a GFile representing a directory |
|
optional GCancellable object, NULL to ignore.
|
|
a GAsyncReadyCallback to call when the request is satisfied |
|
the data to pass to callback function |
char * discident_get_title_file_finish (GFile *directory, GAsyncResult *res, GError **error);
Finishes a title get operation. See discident_get_title_file_async()
.
|
a GFile representing a directory |
|
a GAsyncResult. |
|
a GError. |
Returns : |
a string containing the title or NULL in case of errors.
Free the returned string with g_free() when done.
|