include/alp/conflictmgr.h File Reference

#include <alp/types.h>
#include <alp/sysclass.h>

Go to the source code of this file.

Defines

#define ALP_CLASS_CONFLICT_CALLBACK_STATUS   (ALP_CLASS_CONFLICT_MANAGER|0x00010000)
#define ALP_CLASS_CONFLICT_ERROR_STATUS   (ALP_CLASS_CONFLICT_MANAGER|0x00000000)
#define ALP_CLASS_CONFLICT_STATES   (ALP_CLASS_CONFLICT_MANAGER|0x00020000)
#define SUPPORT_TRY_ACTIVATE   0

Typedefs

typedef alp_status_t(* AlpConflictCallback )(AlpConflictToken token, AlpConflictState newState, const char *otherTokenName, void *cbData)
 The state change callback. This will be called at least once after every successful call to alp_conflict_token_activate().
typedef void * AlpConflictToken
 An opaque type, representing an activated token.

Enumerations

enum  {
  ALP_STATUS_CONFLICT_TOKEN_UNKNOWN, ALP_STATUS_CONFLICT_TOKEN_UNAVAILABLE, ALP_STATUS_CONFLICT_TOKEN_BLOCKED, ALP_STATUS_CONFLICT_IPC_ERROR,
  ALP_STATUS_CONFLICT_TOKEN_INVALID, ALP_STATUS_CONFLICT_UNREADABLE_RULES_FILE, ALP_STATUS_CONFLICT_INVALID_RULES_FILE, ALP_STATUS_CONFLICT_INVALID_PARAMETER
}
enum  { ALP_STATUS_CONFLICT_CALLBACK_CHANGE_PENDING, ALP_STATUS_CONFLICT_CALLBACK_ERROR }
enum  AlpConflictState {
  ALP_CONFLICT_INACTIVE, ALP_CONFLICT_CANCEL, ALP_CONFLICT_SUSPEND, ALP_CONFLICT_PENDING,
  ALP_CONFLICT_ALLOW
}
 The states passed to the AlpConflictCallback method. More...

Functions

alp_status_t alp_conflict_configure (const char *configFilename)
 Loads a set of tokens and conflict rules, from an ASCII file.
alp_status_t alp_conflict_token_activate (const char *tokenName, AlpConflictCallback stateChangeCB, void *cbData, AlpConflictToken *outToken)
 Tells the conflict manager that a component wants to enter a state that needs tracking.
alp_status_t alp_conflict_token_release (AlpConflictToken token)
 Tells the conflict manager that a component is leaving a state that needs tracking.


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.