#include <include/hiker/bundlemgr.h>
Public Types | |
enum | { ALP_BUNDLE_PROGRESSIVE_HAVE_BYTES_SO_FAR = 1<<0, ALP_BUNDLE_PROGRESSIVE_HAVE_TOTAL_BYTES = 1<<1, ALP_BUNDLE_PROGRESSIVE_HAVE_MAX_OVERHEAD = 1<<2, ALP_BUNDLE_PROGRESSIVE_HAVE_METADATA = 1<<3, ALP_BUNDLE_PROGRESSIVE_HAVE_PROPERTIES = 1<<4, ALP_BUNDLE_PROGRESSIVE_HAVE_FILENAME = 1<<5, ALP_BUNDLE_PROGRESSIVE_HAVE_MIMETYPE = 1<<6, ALP_BUNDLE_PROGRESSIVE_HAVE_STORE = 1<<7, ALP_BUNDLE_PROGRESSIVE_HAVE_OVERWRITING_PKGINDEX = 1<<8, ALP_BUNDLE_PROGRESSIVE_HAVE_PKGINDEX = 1<<9, ALP_BUNDLE_PROGRESSIVE_HAVE_FINISHED = 1<<10 } |
Data Fields | |
gint | version |
Caller should set this to ALP_BUNDLE_PROGRESSIVE_DATA_VERSION, so that the image routines know what layout the caller is using. | |
gboolean(* | callback )(AlpBundleProgressiveData *) |
Caller should set this. | |
enum _AlpBundleProgressiveData:: { ... } | ALP_BUNDLE_PROGRESSIVE_ENUM |
guint | new_state |
Any ALP_BUNDLE_PROGRESSIVE_HAVE_. | |
guint | current_state |
Any ALP_BUNDLE_PROGRESSIVE_HAVE_. | |
guint | bytes_so_far |
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_BYTES_SO_FAR, 0 otherwise This field indicates how many bytes of data have been processed. | |
guint | total_bytes |
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_TOTAL_BYTES, 0 otherwise This field indicates how many bytes in total are needed. | |
guint | max_overhead |
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_OVERHEAD, 0 otherwise This field indicates how much space has been temporarily used on the system in order to process the stream. | |
GHashTable * | metadata |
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_METADATA, NULL otherwise. | |
GHashTable * | properties |
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_PROPERTIES, NULL otherwise. | |
const char * | recommended_filename |
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_FILENAME, NULL otherwise. | |
const char * | recommended_mimetype |
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_MIMETYPE, NULL otherwise. | |
const char * | store |
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_STORE, NULL otherwise. | |
AlpBundle | overwriting_index |
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_OVERWRITING_PKGINDEX, NULL otherwise. | |
AlpBundle | index |
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_PKGINDEX, NULL otherwise. | |
void * | userdata |
This field is intended for the caller to refer to any additional data that might be needed, for state, etc. |
|
|
|
|
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_BYTES_SO_FAR, 0 otherwise This field indicates how many bytes of data have been processed.
|
|
Caller should set this. The callback should return TRUE if it wants to abort the image routine. |
|
Any ALP_BUNDLE_PROGRESSIVE_HAVE_. .. flags which are set in this member indicate that the respective fields are valid. |
|
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_PKGINDEX, NULL otherwise.
|
|
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_OVERHEAD, 0 otherwise This field indicates how much space has been temporarily used on the system in order to process the stream. Any overhead space will be released before the image call returns. |
|
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_METADATA, NULL otherwise.
|
|
Any ALP_BUNDLE_PROGRESSIVE_HAVE_. .. flags which are added to current_state in this invocation of the callback will also be listed in new_state, for the convenience of the callback. |
|
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_OVERWRITING_PKGINDEX, NULL otherwise.
|
|
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_PROPERTIES, NULL otherwise.
|
|
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_FILENAME, NULL otherwise.
|
|
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_MIMETYPE, NULL otherwise.
|
|
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_STORE, NULL otherwise.
|
|
Valid only if ALP_BUNDLE_PROGRESSIVE_HAVE_TOTAL_BYTES, 0 otherwise This field indicates how many bytes in total are needed.
|
|
This field is intended for the caller to refer to any additional data that might be needed, for state, etc.
|
|
Caller should set this to ALP_BUNDLE_PROGRESSIVE_DATA_VERSION, so that the image routines know what layout the caller is using.
|