#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_scheme_values (const char *scheme) |
Return all data describing a scheme Given a scheme name, returns a hashtable containing keys and values describing the scheme. | |
gchar * | alp_bundle_scheme_value (const char *scheme, const char *key) |
Return a the value for a scheme description key Given a scheme name and a key name, return the value of that key as an allocated string, or NULL if there is no such key. | |
gchar * | alp_bundle_scheme_identify (const char *filename, const char *mimetype) |
Given a filename and/or mimetype, determine what bundle scheme is appropriate. |
|
Given a filename and/or mimetype, determine what bundle scheme is appropriate. If there's enough information to make a guess about the type of bundle represented by a filename and/or mimetype, this routine will return the matching scheme name. The scheme name returned may not be correct, and this does not gaurantee that attempting to install such a named bundle with that scheme will succeed -- this is strictly a front-line convenience routine.
|
|
Return a the value for a scheme description key Given a scheme name and a key name, return the value of that key as an allocated string, or NULL if there is no such key.
|
|
Return all data describing a scheme Given a scheme name, returns a hashtable containing keys and values describing the scheme. As an example, the "bar" scheme has "extension" and "mimetype" keys. The value for the "extension" key is ".bar".
|