Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

metadata.c File Reference

#include <hiker/bundlemgr.h>
#include <hiker/prv/bundlemgr_prv.h>
#include <hiker/ipc.h>
#include <string.h>
#include <stdlib.h>
#include <sqlite3.h>
#include "pm_traces.h"
#include "pm_globals.h"
#include "pm_ipc.h"
#include "pm_sql.h"

Functions

GHashTable * alp_bundle_metadata (AlpBundle index)
gchar * alp_bundle_metadata_value (AlpBundle index, const char *key)
 Return a the value for a metadata key of a bundle Given a bundle index and a key name, return the value of that key as an allocated string, or NULL if there is no such key.
GList * alp_bundle_all_properties (AlpBundle index)
GHashTable * alp_bundle_properties (AlpBundle index, const char *property, int which)
gchar * alp_bundle_property_value (AlpBundle index, const char *property, int which, const char *key)
 Given a bundle index and a key name, return the value of that key as an allocated string, or NULL if there is no such key.


Function Documentation

GList* alp_bundle_all_properties AlpBundle  index  ) 
 

GHashTable* alp_bundle_metadata AlpBundle  index  ) 
 

gchar* alp_bundle_metadata_value AlpBundle  index,
const char *  key
 

Return a the value for a metadata key of a bundle Given a bundle index and a key name, return the value of that key as an allocated string, or NULL if there is no such key.

Parameters:
[in] index A bundle index. May be invalid, in which case an error will be returned.
[in] key A key string. Results are undefined if this is NULL.
Returns:
An allocated string containing the value of the metadata field for the given key. If the value is empty, an empty string will be returned. If the key is not present, NULL will be returned. When you are done with the result, free it with g_free().

GHashTable* alp_bundle_properties AlpBundle  index,
const char *  property,
int  which
 

gchar* alp_bundle_property_value AlpBundle  index,
const char *  property,
int  which,
const char *  key
 

Given a bundle index and a key name, return the value of that key as an allocated string, or NULL if there is no such key.

Parameters:
[in] index A bundle index. May be invalid, in which case an error will be returned.
[in] property 
[in] which 
[in] key A key string. Results are undefined if this is NULL.
Returns:
An allocated string containing the value of the property field for the given key. If the value is empty, an empty string will be returned. If the key is not present, NULL will be returned. When you are done with the result, free it with g_free().


Generated on Sat Dec 16 20:29:48 2006 for hiker-0.9 by  doxygen 1.4.4