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

attn_dml_prv.c File Reference


Detailed Description

ALP attention manager DML private functions.

#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <hiker/types.h>
#include <hiker/prv/attnmgr_traces.h>
#include <hiker/prv/attnmgr_dml.h>
#include "attn_dml_prv.h"

Functions

alp_status_t alp_prv_attn_dml_convert_sal_error (alp_status_t salError)
 Translate SAL errors to Attention error codes.
char * alp_prv_attn_dml_get_order_string (AlpAttnDmlOrderByType orderBy)
alp_status_t alp_prv_attn_dml_validate_luid (AlpDmlH dmlH, AlpAttnDmlItemType itemType, AlpLuid luid)
 Verify that the specified LUID exists as an alertLUID in the ALERTS table.
alp_status_t alp_prv_attn_dml_create_database (const char *db_pathname)
 Create attention database.
alp_status_t alp_prv_attn_dml_init_database (const char *db_pathname)
 Initialize attention manager database.


Function Documentation

alp_status_t alp_prv_attn_dml_convert_sal_error alp_status_t  salError  ) 
 

Translate SAL errors to Attention error codes.

alp_status_t alp_prv_attn_dml_create_database const char *  db_pathname  ) 
 

Create attention database.

Called by the database initialize routine to (re) create database should it not exist or be corrupted.

Parameters:
[in] db_pathname desired pathname of database

char* alp_prv_attn_dml_get_order_string AlpAttnDmlOrderByType  orderBy  ) 
 

alp_status_t alp_prv_attn_dml_init_database const char *  db_pathname  ) 
 

Initialize attention manager database.

Called by the attention manager daemon to verify the existence and integrity of the database.

Parameters:
[in] db_pathname desired pathname of database
Returns:
ALP_STATUS_OK if database exists and is valid

alp_status_t alp_prv_attn_dml_validate_luid AlpDmlH  dmlH,
AlpAttnDmlItemType  itemType,
AlpLuid  luid
 

Verify that the specified LUID exists as an alertLUID in the ALERTS table.

Parameters:
[in] an AlpDmlH handle for the data model
[in] an AlpLuid for the alertLuid to be verified.
Returns:
alp_status_t


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