diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2014-05-13 19:51:34 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-05-13 20:06:48 +0100 |
commit | f28a4cc671f161db2698a7e17a8e7b662dbf6d33 (patch) | |
tree | e133876a63d76781e5b3e6f00655ba0275464c1d /plugins/elements/gstsparsefile.h | |
parent | fa94322349808e6c4fac1e48204fd5602f4e99e3 (diff) |
elements: don't depend on libgio just for g_io_error_from_errno()
https://bugzilla.gnome.org/show_bug.cgi?id=729949
Diffstat (limited to 'plugins/elements/gstsparsefile.h')
-rw-r--r-- | plugins/elements/gstsparsefile.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/plugins/elements/gstsparsefile.h b/plugins/elements/gstsparsefile.h index 68dd8a784..76f73d38e 100644 --- a/plugins/elements/gstsparsefile.h +++ b/plugins/elements/gstsparsefile.h @@ -26,6 +26,55 @@ G_BEGIN_DECLS typedef struct _GstSparseFile GstSparseFile; +/* NOTE: Remove this before making this public API again! */ +typedef enum { + GST_SPARSE_FILE_IO_ERROR_FAILED, + GST_SPARSE_FILE_IO_ERROR_NOT_FOUND, + GST_SPARSE_FILE_IO_ERROR_EXISTS, + GST_SPARSE_FILE_IO_ERROR_IS_DIRECTORY, + GST_SPARSE_FILE_IO_ERROR_NOT_DIRECTORY, + GST_SPARSE_FILE_IO_ERROR_NOT_EMPTY, + GST_SPARSE_FILE_IO_ERROR_NOT_REGULAR_FILE, + GST_SPARSE_FILE_IO_ERROR_NOT_SYMBOLIC_LINK, + GST_SPARSE_FILE_IO_ERROR_NOT_MOUNTABLE_FILE, + GST_SPARSE_FILE_IO_ERROR_FILENAME_TOO_LONG, + GST_SPARSE_FILE_IO_ERROR_INVALID_FILENAME, + GST_SPARSE_FILE_IO_ERROR_TOO_MANY_LINKS, + GST_SPARSE_FILE_IO_ERROR_NO_SPACE, + GST_SPARSE_FILE_IO_ERROR_INVALID_ARGUMENT, + GST_SPARSE_FILE_IO_ERROR_PERMISSION_DENIED, + GST_SPARSE_FILE_IO_ERROR_NOT_SUPPORTED, + GST_SPARSE_FILE_IO_ERROR_NOT_MOUNTED, + GST_SPARSE_FILE_IO_ERROR_ALREADY_MOUNTED, + GST_SPARSE_FILE_IO_ERROR_CLOSED, + GST_SPARSE_FILE_IO_ERROR_CANCELLED, + GST_SPARSE_FILE_IO_ERROR_PENDING, + GST_SPARSE_FILE_IO_ERROR_READ_ONLY, + GST_SPARSE_FILE_IO_ERROR_CANT_CREATE_BACKUP, + GST_SPARSE_FILE_IO_ERROR_WRONG_ETAG, + GST_SPARSE_FILE_IO_ERROR_TIMED_OUT, + GST_SPARSE_FILE_IO_ERROR_WOULD_RECURSE, + GST_SPARSE_FILE_IO_ERROR_BUSY, + GST_SPARSE_FILE_IO_ERROR_WOULD_BLOCK, + GST_SPARSE_FILE_IO_ERROR_HOST_NOT_FOUND, + GST_SPARSE_FILE_IO_ERROR_WOULD_MERGE, + GST_SPARSE_FILE_IO_ERROR_FAILED_HANDLED, + GST_SPARSE_FILE_IO_ERROR_TOO_MANY_OPEN_FILES, + GST_SPARSE_FILE_IO_ERROR_NOT_INITIALIZED, + GST_SPARSE_FILE_IO_ERROR_ADDRESS_IN_USE, + GST_SPARSE_FILE_IO_ERROR_PARTIAL_INPUT, + GST_SPARSE_FILE_IO_ERROR_INVALID_DATA, + GST_SPARSE_FILE_IO_ERROR_DBUS_ERROR, + GST_SPARSE_FILE_IO_ERROR_HOST_UNREACHABLE, + GST_SPARSE_FILE_IO_ERROR_NETWORK_UNREACHABLE, + GST_SPARSE_FILE_IO_ERROR_CONNECTION_REFUSED, + GST_SPARSE_FILE_IO_ERROR_PROXY_FAILED, + GST_SPARSE_FILE_IO_ERROR_PROXY_AUTH_FAILED, + GST_SPARSE_FILE_IO_ERROR_PROXY_NEED_AUTH, + GST_SPARSE_FILE_IO_ERROR_PROXY_NOT_ALLOWED, + GST_SPARSE_FILE_IO_ERROR_BROKEN_PIPE +} GstSparseFileIOErrorEnum; + GstSparseFile * gst_sparse_file_new (void); void gst_sparse_file_free (GstSparseFile *file); |