OpenDNSSEC-enforcer  1.4.5
Data Structures | Typedefs | Functions
message.h File Reference
#include <stdarg.h>
#include <ksm/system_includes.h>
#include <ksm/memory.h>
Include dependency graph for message.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MSG_CODEBLOCK

Typedefs

typedef void(* MSG_OUTPUT_FUNCTION )(const char *text)

Functions

void MsgInit (void)
void MsgDefaultOutput (const char *text)
void MsgNoOutput (const char *text)
void MsgRegister (int min, int max, const char **message, MSG_OUTPUT_FUNCTION output)
int MsgFindCodeBlock (int status)
const char * MsgText (int status)
MSG_OUTPUT_FUNCTION MsgGetOutput (int status)
void MsgSetOutput (int code, MSG_OUTPUT_FUNCTION output)
int MsgLog (int status,...)
int MsgLogAp (int status, va_list ap)
void MsgRundown (void)

Typedef Documentation

typedef void(* MSG_OUTPUT_FUNCTION)(const char *text)

Definition at line 46 of file message.h.

Function Documentation

void MsgDefaultOutput ( const char *  text)

Definition at line 84 of file message.c.

Referenced by MsgLogAp(), MsgRegister(), and MsgSetOutput().

int MsgFindCodeBlock ( int  status)

Definition at line 186 of file message.c.

References m_numblocks, max, and min.

Referenced by MsgGetOutput(), MsgSetOutput(), and MsgText().

MSG_OUTPUT_FUNCTION MsgGetOutput ( int  status)

Definition at line 258 of file message.c.

References MsgFindCodeBlock(), and MSG_CODEBLOCK::output.

Referenced by MsgLogAp().

void MsgInit ( void  )

Definition at line 63 of file message.c.

References m_numblocks.

Referenced by KsmInit(), and main().

int MsgLog ( int  status,
  ... 
)

Definition at line 335 of file message.c.

References MsgLogAp().

Referenced by ChangeKeyState(), cmd_purgepolicy(), db_version_check(), DbCheckConnected(), DbConnect(), DbDateDiff(), DbDisconnect(), DbExecuteSql(), DbExecuteSqlNoResult(), DbFetchRow(), DbFreeResult(), DbFreeRow(), DbInt(), DbIntQuery(), DbLastRowId(), DbQuoteString(), DbRowId(), DbString(), DbStringBuffer(), DbUnsignedLong(), DtNow(), KsmCheckHSMkeyID(), KsmCollectionInit(), KsmDeleteZone(), KsmDnssecKeyCreate(), KsmDNSSECKeysInSMCount(), KsmDNSSECKeysStateCountInit(), KsmImportKeyPair(), KsmImportPolicy(), KsmImportRepository(), KsmImportZone(), KsmKey(), KsmKeyCountQueue(), KsmKeyCountStillGood(), KsmKeyGetUnallocated(), KsmKeyInit(), KsmKeyPairCreate(), KsmKeyPredict(), KsmMarkBackup(), KsmMarkPreBackup(), KsmParameter(), KsmParameterClockskew(), KsmParameterCollection(), KsmParameterInitialPublicationInterval(), KsmParameterKskLifetime(), KsmParameterKskPropagationDelay(), KsmParameterKskTtl(), KsmParameterPropagationDelay(), KsmParameterPubSafety(), KsmParameterRegistrationDelay(), KsmParameterRetSafety(), KsmParameterSigningInterval(), KsmParameterSoaMin(), KsmParameterSoaTtl(), KsmParameterStandbyKSKeys(), KsmParameterStandbyZSKeys(), KsmParameterValue(), KsmParameterZskLifetime(), KsmParameterZskTtl(), KsmPolicy(), KsmPolicyClockskew(), KsmPolicyExists(), KsmPolicyIdFromName(), KsmPolicyIdFromZoneId(), KsmPolicyInitialPublicationInterval(), KsmPolicyKeyLifetime(), KsmPolicyKeyTtl(), KsmPolicyNameFromId(), KsmPolicyNullSaltStamp(), KsmPolicyParameter(), KsmPolicyPopulateSMFromIds(), KsmPolicyPropagationDelay(), KsmPolicyRead(), KsmPolicySetIdFromName(), KsmPolicySoaMin(), KsmPolicySoaTtl(), KsmPolicyStandbyKeys(), KsmPolicyUpdateDesc(), KsmPolicyUpdateSalt(), KsmRequestAvailableCount(), KsmRequestChangeState(), KsmRequestChangeStateGenerateDSSubConditional(), KsmRequestChangeStateGeneratePublishConditional(), KsmRequestChangeStateN(), KsmRequestCheckActiveKey(), KsmRequestCheckCompromisedFlag(), KsmRequestCheckFirstPass(), KsmRequestCountReadyKey(), KsmRequestGenerateCount(), KsmRequestIssueKeys(), KsmRequestKeys(), KsmRequestKeysByType(), KsmRequestPendingRetireCount(), KsmRequestSetActiveExpectedRetire(), KsmRequestStandbyKSKCount(), KsmRollbackMarkPreBackup(), KsmSerialIdFromName(), KsmSmIdFromName(), KsmUpdateActiveKeyTime(), KsmUpdateDeadKeyTime(), KsmUpdateDSPublishKeyTime(), KsmUpdateGenerateKeyTime(), KsmUpdateKey(), KsmUpdateKEYPublishKeyTime(), KsmUpdateKeyTime(), KsmUpdatePublishKeyTime(), KsmUpdateReadyKeyTime(), KsmUpdateRetireKeyTime(), KsmZone(), KsmZoneCount(), KsmZoneIdAndPolicyFromName(), KsmZoneIdFromName(), KsmZoneNameFromId(), MarkDSSeen(), MemCalloc(), MemMalloc(), MemRealloc(), RetireOldKey(), StrKeywordSearch(), StrStrdup(), StrStrtoi(), StrStrtol(), StrStrtoui(), and StrStrtoul().

int MsgLogAp ( int  status,
va_list  ap 
)

Definition at line 371 of file message.c.

References MsgDefaultOutput(), MsgGetOutput(), and MsgText().

Referenced by DbgLog(), and MsgLog().

void MsgNoOutput ( const char *  text)

Definition at line 104 of file message.c.

void MsgRegister ( int  min,
int  max,
const char **  message,
MSG_OUTPUT_FUNCTION  output 
)
void MsgRundown ( void  )

Definition at line 412 of file message.c.

References m_numblocks, and MemFree.

Referenced by KsmRundown(), and main().

void MsgSetOutput ( int  code,
MSG_OUTPUT_FUNCTION  output 
)

Definition at line 290 of file message.c.

References MsgDefaultOutput(), MsgFindCodeBlock(), and MSG_CODEBLOCK::output.

const char* MsgText ( int  status)

Definition at line 223 of file message.c.

References MSG_CODEBLOCK::message, MSG_CODEBLOCK::min, and MsgFindCodeBlock().

Referenced by MsgLogAp().