libmsngr  1.1
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups
msngr.c File Reference

Messanger Functions. More...

#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "messenger.h"

Go to the source code of this file.

Functions

int msngr_init_log (const char *path, const char *name, int flags, size_t errlen, char *errstr)
 Initialize the log file.
int msngr_init_mail (MessageType type, const char *from, const char *to, const char *cc, const char *subject, int flags, size_t errlen, char *errstr)
 Initialize a mail message.
int msngr_init_provenance (const char *path, const char *name, int flags, size_t errlen, char *errstr)
 Initialize the provenance log.
void msngr_finish (void)
 Finish all messenger processes.
void msngr_finish_log (void)
 Finish and close the log file.
void msngr_finish_mail (MessageType type)
 Finish and send a mail message.
void msngr_finish_provenance (void)
 Finish and close the provenance log file.
void msngr_flush_log_error (void)
 Flush the log error message.
void msngr_flush_mail_errors (void)
 Flush all mail error messages.
void msngr_flush_provenance_error (void)
 Flush the provenance log error message.
void msngr_send (const char *sender, const char *func, const char *file, int line, MessageType type, const char *format,...)
 Message handling function.
void msngr_vsend (const char *sender, const char *func, const char *file, int line, MessageType type, const char *format, va_list args)
 Message handling function.
int msngr_set_debug_level (int level)
 Set the debug level.
int msngr_set_provenance_level (int level)
 Set the provenance level.
LogFilemsngr_get_log_file (void)
 Get the LogFile structure used by the messengr functions.
Mailmsngr_get_mail (MessageType type)
 Get a Mail structure used by the messengr functions.

Variables

int msngr_debug_level = 0
 External variable containing the debug level.
int msngr_provenance_level = 0
 External variable containing the provenance level.

Detailed Description

Messanger Functions.

Definition in file msngr.c.


Variable Documentation

int msngr_debug_level = 0

External variable containing the debug level.

Definition at line 35 of file msngr.c.

int msngr_provenance_level = 0

External variable containing the provenance level.

Definition at line 36 of file msngr.c.