include/alp/catmgr_dml.h File Reference


Detailed Description

Public header for the CatMgr data model.

>

#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <alp/types.h>
#include <alp/sysclass.h>
#include <glib.h>

Go to the source code of this file.

Defines

#define ALP_CATMGR_DML_H_   1
#define alp_catmgr_dml_memberships_add   alp_catmgr_dml_add_memberships
#define alp_catmgr_dml_memberships_remove   alp_catmgr_dml_remove_memberships
#define ALP_STATUS_CATMGR_DML_BAD_PARAM   (ALP_CLASS_CATMGR_DML | 0x00020000)
#define ALP_STATUS_CATMGR_DML_CHANGEMGR_ERROR   (ALP_CLASS_CATMGR_DML | 0x00090000)
#define ALP_STATUS_CATMGR_DML_DATABASE_ERR   (ALP_CLASS_CATMGR_DML | 0x00060000)
#define ALP_STATUS_CATMGR_DML_DUPLICATE_MEMBERSHIP   (ALP_CLASS_CATMGR_DML | 0x00080000)
#define ALP_STATUS_CATMGR_DML_INTERNAL_ERR   (ALP_CLASS_CATMGR_DML | 0x00030000)
#define ALP_STATUS_CATMGR_DML_INVALID_LUID   (ALP_CLASS_CATMGR_DML | 0x00040000)
#define ALP_STATUS_CATMGR_DML_NO_MEM   (ALP_CLASS_CATMGR_DML | 0x00010000)
#define ALP_STATUS_CATMGR_DML_NO_RECORDS   (ALP_CLASS_CATMGR_DML | 0x00050000)
#define ALP_STATUS_CATMGR_DML_NOT_FOUND   (ALP_CLASS_CATMGR_DML | 0x00070000)
#define ALP_STATUS_CATMGR_DML_PDI_ERROR   (ALP_CLASS_CATMGR_DML | 0x000B0000)
#define ALP_STATUS_CATMGR_DML_UDA_ERROR   (ALP_CLASS_CATMGR_DML | 0x000A0000)

Enumerations

enum  AlpCatMgrDmlColumnType {
  Name, CategoryLuid, ReadOnly, EntityLuid,
  MembershipLuid
}
enum  AlpCatMgrDmlItemType { CategoryItem = 1, MembershipItem }

Functions

alp_status_t alp_catmgr_dml_add_memberships (AlpDmlH catDmlH, AlpLuid entityID, const AlpLuid *categoryIDs, AlpLuid membershipID, int32_t numCategoryIDs)
alp_status_t alp_catmgr_dml_category_from_vCategory_buffer (AlpDmlH dmlH, const uint8_t *dataBuf, bool fromExgMgr, GList **categoryLuids)
alp_status_t alp_catmgr_dml_category_from_vCategory_file (AlpDmlH dmlH, int theDataFd, bool fromExgMgr, GList **categoryLuids)
alp_status_t alp_catmgr_dml_category_statement_begin (AlpDmlH dmlH, AlpLuid categoryLuid, AlpDmlStatementH *stmtH, int32_t *numResults)
alp_status_t alp_catmgr_dml_category_to_vCategory_buffer (AlpDmlH dmlH, uint8_t **dataBuf, size_t *size, bool toExgMgr, GList *categoryLuids)
alp_status_t alp_catmgr_dml_category_to_vCategory_file (AlpDmlH dmlH, int theDataFd, bool toExgMgr, GList *categoryLuids)
alp_status_t alp_catmgr_dml_close (AlpDmlH catH)
alp_status_t alp_catmgr_dml_delete (AlpDmlH dmlH, AlpCatMgrDmlItemType itemType, AlpLuid itemLuid)
alp_status_t alp_catmgr_dml_init (AlpDmlH dmlH)
alp_status_t alp_catmgr_dml_insert (AlpDmlH dmlH, AlpDmlItemH itemH, AlpLuid *itemLuid)
alp_status_t alp_catmgr_dml_item_create (AlpCatMgrDmlItemType itemType, AlpDmlItemH *itemH)
alp_status_t alp_catmgr_dml_item_destroy (AlpDmlItemH itemH)
alp_status_t alp_catmgr_dml_item_set_int32 (AlpDmlItemH itemH, AlpCatMgrDmlColumnType column, const int32_t *value)
alp_status_t alp_catmgr_dml_item_set_string (AlpDmlItemH itemH, AlpCatMgrDmlColumnType column, const char *value)
alp_status_t alp_catmgr_dml_membership_from_vMembership_buffer (AlpDmlH dmlH, const uint8_t *dataBuf, bool fromExgMgr, GList **membershipLuids)
alp_status_t alp_catmgr_dml_membership_from_vMembership_file (AlpDmlH dmlH, int theDataFd, bool fromExgMgr, GList **membershipLuids)
alp_status_t alp_catmgr_dml_membership_statement_begin (AlpDmlH dmlH, AlpLuid entityLuid, AlpLuid categoryLuid, AlpDmlStatementH *stmtH, int32_t *numResults)
alp_status_t alp_catmgr_dml_membership_to_vMembership_buffer (AlpDmlH dmlH, uint8_t **dataBuf, size_t *size, bool toExgMgr, GList *membershipLuids)
alp_status_t alp_catmgr_dml_membership_to_vMembership_file (AlpDmlH dmlH, int theDataFd, bool toExgMgr, GList *membershipLuids)
alp_status_t alp_catmgr_dml_open (AlpDmlH *catH, AlpDmlH dmlH, bool changeTrackingOn, const char *categoryURI, const char *membershipURI)
alp_status_t alp_catmgr_dml_remove_memberships (AlpDmlH catDmlH, AlpLuid entityID, AlpLuid categoryID, AlpLuid membershipID)
alp_status_t alp_catmgr_dml_statement_end (AlpDmlStatementH dmlStmtH)
alp_status_t alp_catmgr_dml_statement_get_int32 (AlpDmlStatementH dmlStmtH, AlpCatMgrDmlColumnType column, int32_t *value)
alp_status_t alp_catmgr_dml_statement_get_luid (AlpDmlStatementH dmlStmtH, AlpLuid *entityLuid)
alp_status_t alp_catmgr_dml_statement_get_string (AlpDmlStatementH dmlStmtH, AlpCatMgrDmlColumnType column, char **value)
alp_status_t alp_catmgr_dml_statement_next (AlpDmlStatementH dmlStmtH)
alp_status_t alp_catmgr_dml_update (AlpDmlH dmlH, AlpDmlItemH itemH, AlpLuid itemLuid)


Define Documentation

#define ALP_CATMGR_DML_H_   1
 


Generated on Wed Jul 30 07:06:39 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.