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

stores.c File Reference

#include <hiker/bundlemgr.h>
#include <hiker/prv/bundlemgr_prv.h>
#include <hiker/ipc.h>
#include <hiker/notifymgr.h>
#include <string.h>
#include <stdlib.h>
#include <sqlite3.h>
#include <dlfcn.h>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/sendfile.h>
#include <sys/wait.h>
#include "pm_traces.h"
#include "pm_globals.h"
#include "pm_ipc.h"
#include "pm_sql.h"
#include "pm_msg.h"
#include "pm_perms.h"
#include "ghost_support.h"
#include "java_support.h"
#include <alp/pdk/gras.h>

Defines

#define BEGIN
#define COMMIT

Functions

AlpBundle alp_bundle_move_to_store (AlpBundle package, const char *store, int flags)
 Move a bundle to an active store This uses the bundle manager to move a registered bundle from one store to another.
void handle_client_alp_bundle_move_to_store (AlpConnection *connection, AlpMessage *message, gpointer cbData)
AlpBundle alp_bundle_copy_to_store (AlpBundle package, const char *store, int flags)
 Copy a bundle to an active store This uses the bundle manager to copy a registered bundle from one store to another.
void handle_client_alp_bundle_copy_to_store (AlpConnection *connection, AlpMessage *message, gpointer cbData)
alp_status_t alp_prv_bundle_add_store (const char *store, const char *arguments[])
 Creates a new store.
void handle_client_alp_prv_bundle_add_store (AlpConnection *connection, AlpMessage *message, gpointer cbData)
alp_status_t alp_prv_bundle_delete_store (const char *store)
 Remove a store. Any bundles on that store will be unregistered (not deleted).
void handle_client_alp_prv_bundle_delete_store (AlpConnection *connection, AlpMessage *message, gpointer cbData)
GHashTable * alp_bundle_store (const char *store)
 Retrieve information about a store.
gchar * alp_bundle_store_value (const char *store, const char *key)
 Retrieve a particular information value about a store.
void alp_prv_ghost_scan_store (const char *store, int store_id, int ghost_storage, int wipe_invalid)
void alp_prv_java_scan_store (const char *store, int store_id, int wipe_invalid)
alp_status_t alp_prv_bundle_scan_store (const char *store, int wipe_invalid, int scheme_skip)
 Sync registration of all bundles on a store For bar files, this will scan the contents of the store's bar_folder, and register any bar folders or files which were not previously registered. Any missing folders or files will have their bundle unregistered.
void handle_client_alp_prv_bundle_scan_store (AlpConnection *connection, AlpMessage *message, gpointer cbData)


Define Documentation

#define BEGIN
 

Value:

#define COMMIT
 

Value:


Function Documentation

AlpBundle alp_bundle_copy_to_store AlpBundle  bundle,
const char *  store,
int  flags
 

Copy a bundle to an active store This uses the bundle manager to copy a registered bundle from one store to another.

The new copy will be registered along with the old one -- only one will have its name registered, and which one will depend on the particular stores.

Parameters:
[in] bundle index of bundle to copy
[in] store name of store to copy it to
[in] flags ALP_BUNDLE_FLAG flags regarding collisions
Returns:
AlpBundle index of the copy.
Note:
this routine is not intended to be used to get a copy of a bundle as a flattened image for sending to another system, placing on a media card, etc. Copying a bundle to an external store may have the effect of turning it into a file which can be transmitted, but the alp_bundle_image_*() routines are to be preferred for this purpose.

AlpBundle alp_bundle_move_to_store AlpBundle  bundle,
const char *  store,
int  flags
 

Move a bundle to an active store This uses the bundle manager to move a registered bundle from one store to another.

Parameters:
[in] bundle index of bundle to move
[in] store name of store to move it to
[in] flags ALP_BUNDLE_FLAG flags regarding collisions
Returns:
AlpBundle index of the moved bundle. Do not assume any relationship between the original and new index. They may differ, or be identical.
Note:
this routine is not intended to be used to get a copy of a bundle as a flattened image for sending to another system, placing on a media card, etc. Moving a bundle to an external store may have the effect of turning it into a file which can be transmitted, but the alp_bundle_image_*() routines are to be preferred for this purpose.

Since the bundle is being moved between stores, and the elected bundle for a particular name depends on store, it is possible that if similarly named bundles exist on several stores, the bundle responding to a name could change after the move.

GHashTable* alp_bundle_store const char *  store  ) 
 

Retrieve information about a store.

gchar* alp_bundle_store_value const char *  store,
const char *  key
 

Retrieve a particular information value about a store.

void alp_prv_ghost_scan_store const char *  store,
int  store_id,
int  ghost_storage,
int  wipe_invalid
 

void alp_prv_java_scan_store const char *  store,
int  store_id,
int  wipe_invalid
 

void handle_client_alp_bundle_copy_to_store AlpConnection connection,
AlpMessage message,
gpointer  cbData
 

void handle_client_alp_bundle_move_to_store AlpConnection connection,
AlpMessage message,
gpointer  cbData
 

void handle_client_alp_prv_bundle_add_store AlpConnection connection,
AlpMessage message,
gpointer  cbData
 

void handle_client_alp_prv_bundle_delete_store AlpConnection connection,
AlpMessage message,
gpointer  cbData
 

void handle_client_alp_prv_bundle_scan_store AlpConnection connection,
AlpMessage message,
gpointer  cbData
 


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