libinstpatch Reference Manual | ||||
---|---|---|---|---|
Top | Description |
extern GValue *ipatch_util_value_bool_true; extern GValue *ipatch_util_value_bool_false; #define IPATCH_UTIL_VALUE_BOOL (b) guint ipatch_util_value_hash (GValue *val
); guint ipatch_util_value_array_hash (GValueArray *valarray
); guint64 ipatch_util_file_size (const char *fname
,GError **err
);
guint ipatch_util_value_hash (GValue *val
);
Hash a GValue. The hash value can then be used in a GHashTable for example.
|
GValue to hash |
Returns : |
Hash value corresponding to the val key.
|
guint ipatch_util_value_array_hash (GValueArray *valarray
);
Hash a GValueArray. The hash value can then be used in a GHashTable for example.
|
GValueArray to hash |
Returns : |
Hash value corresponding to the sum of all values returned
by ipatch_util_value_hash() for each GValue in the array.
|
guint64 ipatch_util_file_size (const char *fname
,GError **err
);
Get the size of a file (tired of using stat every time?).
|
Path of file to get size of. |
|
Location to store error or NULL |
Returns : |
File size. Will return 0 on error, but err must be checked if
it is set to determine if an error really occurred.
|