#ifndef REPMGR_H #define REPMGR_H #include |
WFTK_EXPORT XML * repos_open (XML * repository, WFTK_MODULE_LOOKUP_FN * lookup_function, const char * calling_app); WFTK_EXPORT XML * repos_open_file (const char * repfile, WFTK_MODULE_LOOKUP_FN * lookup_function, const char * calling_app); WFTK_EXPORT void repos_close (XML * repository); |
WFTK_EXPORT int repos_publish_all (XML * repository); WFTK_EXPORT int repos_publish_list (XML * repository, const char * list); WFTK_EXPORT int repos_publish_obj (XML * repository, const char * list, const char * key); WFTK_EXPORT int repos_publish_pages (XML * repository); WFTK_EXPORT int repos_publish_page (XML * repository, const char * page); |
WFTK_EXPORT int repos_create (XML * repository, const char * list); WFTK_EXPORT int repos_drop (XML * repository, const char * list); WFTK_EXPORT XML * repos_defn (XML * repository, const char * list); WFTK_EXPORT int repos_define (XML * repository, const char * list, XML * defn); WFTK_EXPORT XML * repos_list_choices (XML * repository, const char * list, XML * obj, const char * field); WFTK_EXPORT char * repos_view_find (XML * repository, XML * list, XML * object, const char * mode); WFTK_EXPORT char * repos_view_express (XML * repository, XML * list, XML * object, const char * view); WFTK_EXPORT XML * repos_form (XML * repository, const char * list, const char * key, const char * mode); WFTK_EXPORT XML * repos_form_direct (XML * repository, XML * list, const char * key, const char * mode); WFTK_EXPORT XML * repos_form_object (XML * repository, const char * list, XML * object, const char * mode); WFTK_EXPORT XML * repos_form_object_direct (XML * repository, XML * list, XML * object, const char * mode); WFTK_EXPORT XML * repos_form_object_field (XML * repository, XML * list, XML * object, const char * field); WFTK_EXPORT XML * repos_format_object (XML * repository, XML * list, XML * object, XML * layout); |
WFTK_EXPORT int repos_add (XML * repository, const char * list, XML * object); WFTK_EXPORT int repos_del (XML * repository, const char * list, const char * key); WFTK_EXPORT int repos_mod (XML * repository, const char * list, XML * object, const char * key); WFTK_EXPORT int repos_merge (XML * repository, const char * list, XML * object, const char * key); |
WFTK_EXPORT XML * repos_get (XML * repository, const char * list, const char * key); |
WFTK_EXPORT XML * repos_list (XML * repository, XML * list); WFTK_EXPORT XML * repos_list_first (XML * repository, XML * list); WFTK_EXPORT XML * repos_list_next (XML * repository, XML * list); WFTK_EXPORT XML * repos_changes (XML * repository, XML * list, const char *date, const char * list_id); WFTK_EXPORT XML * repos_snapshot (XML * repository, const char * list_id); |
WFTK_EXPORT XML * repos_user_auth (XML * repository, const char * user_id, const char * passwd); WFTK_EXPORT XML * repos_user_ingroup (XML * repository, const char * user_id, const char * group_id); |
WFTK_EXPORT char * repos_context_save (XML * repository); WFTK_EXPORT XML * repos_context_switch (XML * repository, const char * context_id); WFTK_EXPORT char * repos_context_get (XML * repository, const char * name); WFTK_EXPORT void repos_context_set (XML * repository, const char * name, const char * value); |
WFTK_EXPORT XML * repos_xact_open (XML * repository, const char * key); WFTK_EXPORT XML * repos_xact_get (XML * repository, const char * list, const char * key, XML * xact); WFTK_EXPORT char * repos_xact_save (XML * repository, XML * xact); WFTK_EXPORT XML * repos_xact_start (XML * repository, XML * xact); /* Might be char * key? */ |
WFTK_EXPORT XML * repos_action_do (XML * repository, XML * action); WFTK_EXPORT XML * repos_action_do_object (XML * repository, XML * action, XML * object); |
WFTK_EXPORT XML * repos_action_list (XML * repository, const char * list, const char * key, const char * mode); WFTK_EXPORT XML * repos_action_list_direct (XML * repository, XML * list, const char * key, const char * mode); WFTK_EXPORT XML * repos_action_list_object (XML * repository, const char * list, XML * object, const char * mode); WFTK_EXPORT XML * repos_action_list_object_direct (XML * repository, XML * list, XML * object, const char * mode); |
WFTK_EXPORT char * repos_process (XML * repository, const char * list, const char * key); |
WFTK_EXPORT void repos_workflow_start (XML * repository, const char * list, const char * key, XML * wf_defn, const char * wf_id); WFTK_EXPORT void repos_workflow_start_direct (XML * repository, XML * obj, XML * wf_defn, const char * wf_id); WFTK_EXPORT int repos_workflow_action_taken (XML * repository, XML * list, XML * obj, const char * action); WFTK_EXPORT void repos_task_add (XML * repository, const char * list, const char * key, XML * task_defn); WFTK_EXPORT void repos_task_add_direct (XML * repository, XML * obj, XML * task_defn); WFTK_EXPORT XML * repos_tasks (XML * repository, XML * tasklist, const char * list, const char * key, const char * user); WFTK_EXPORT XML * repos_tasks_direct (XML * repository, XML * tasklist, XML * obj, const char * user); WFTK_EXPORT XML * repos_task_get (XML * repository, const char * list, const char * key, const char * local_key); WFTK_EXPORT XML * repos_task_get_direct (XML * repository, XML * obj, const char * local_key); |
WFTK_EXPORT void repos_notify (XML * repository, const char * list, const char * key, XML * obj, const char * notification_id, const char * subject, const char * recipient); WFTK_EXPORT void repos_notify_direct (XML * repository, const char * list, const char * key, XML * obj, XML * notification, const char * subject, const char * recipient); |
WFTK_EXPORT XML * repos_get_layout (XML * repository, const char * layout_id); WFTK_EXPORT void repos_xml_free (XML * xml); /* Used to reduce DLL dependencies. */ WFTK_EXPORT const char * repos_getkey (XML * repository, const char * list, XML * object); WFTK_EXPORT char * repos_getvalue (XML * repository, const char * list, const char * key, const char * field); WFTK_EXPORT void repos_setvalue (XML * repository, const char * list, const char * key, const char * field, const char * value); WFTK_EXPORT void repos_log (XML * repository, int level, int type, XML * object, const char * subsystem, const char * message, ...); |
WFTK_EXPORT int repos_report_start (XML * repository, const char * list, const char * name); WFTK_EXPORT int repos_report_close (XML * repository, const char * report); WFTK_EXPORT int repos_report_cancel (XML * repository, const char * report); WFTK_EXPORT int repos_report_log (XML * repository, const char * report, const char * format, ...); WFTK_EXPORT XML * repos_report_getobj (XML * repository, const char * report); |
WFTK_EXPORT int repos_push (XML * repository, const char *list_id, const char *remote_id); WFTK_EXPORT int repos_push_all (XML * repository, const char *list_id, const char *remote_id); WFTK_EXPORT int repos_pull (XML * repository, const char *list_id, const char *remote_id, XML * changelist); WFTK_EXPORT int repos_pull_all (XML * repository, const char *list_id, const char *remote_id, XML * changelist); WFTK_EXPORT int repos_synch (XML * repository, const char *list_id, const char *remote_id, XML * changelist); WFTK_EXPORT int repos_mark_time (XML * repository, const char *attr); |
WFTK_EXPORT XML * repos_attach_open (XML * repository, const char *list_id, const char * key, const char * field, const char * filename); WFTK_EXPORT int repos_attach_write (void * buf, size_t size, size_t number, XML * handle); WFTK_EXPORT int repos_attach_cancel (XML * handle); WFTK_EXPORT int repos_attach_close (XML * repository, XML * handle); WFTK_EXPORT int repos_attach (XML * repository, const char * list_id, const char * key, const char * field, const char * filename, FILE * incoming); WFTK_EXPORT int repos_submit (XML * repository, const char * list_id, XML * fields, const char * incoming); WFTK_EXPORT int repos_store (XML * repository, const char * list_id, XML * fields, const char * incoming_file); WFTK_EXPORT void repos_attach_getver (XML * repository, const char * list_id, const char * key, const char * field); WFTK_EXPORT XML * repos_retrieve_open (XML * repository, const char * list_id, const char * key, const char * field, const char * ver); WFTK_EXPORT int repos_retrieve_read (void * buf, size_t size, size_t number, XML * handle); WFTK_EXPORT int repos_retrieve_close (XML * handle); WFTK_EXPORT int repos_retrieve (XML * repository, const char * list_id, const char * key, const char * field, const char * ver, FILE * outgoing); WFTK_EXPORT XML * repos_retrieve_load (XML * repository, const char * list_id, const char * key, const char * field, const char * ver); |
#ifdef __cplusplus } #endif #endif |
This code and documentation are released under the terms of the GNU license. They are copyright (c) 2001-2005, Vivtek. All rights reserved except those explicitly granted under the terms of the GNU license. |