logfile.h
Go to the documentation of this file.
1/* Copyright (c) 2004-2009, Isode Limited, London, England.
2 * All rights reserved.
3 *
4 * Acquisition and use of this software and related materials for any
5 * purpose requires a written licence agreement from Isode Limited,
6 * or a written licence from an organisation licenced by Isode Limited
7 * to grant such a licence.
8 *
9 */
10
11#ifndef _SOM_LOGFILE_H
12#define _SOM_LOGFILE_H
13
14#include "session.h"
15
28#define SOM_FACILITY_LOGFILE 1
46typedef void SOMLogfileCallback (struct SOMSession *session,
47 void *ophandle,
48 void *clientdata,
49 int status,
50 const char *opdata,
51 size_t opdatalen);
52
64SOMAPI_CDECL int SOMLogfileSetCallback (struct SOMSession *session,
65 SOMLogfileCallback *callback,
66 SOMLogfileCallback **oldvalue);
67
95SOMAPI_CDECL int SOMLogfileMonitor (struct SOMSession *session,
96 const char *filepattern,
97 const char *searchpattern,
98 int interval,
99 void *ophandle,
100 int async);
101
130SOMAPI_CDECL int SOMLogfileView (struct SOMSession *session,
131 const char *filepattern,
132 const char *searchpattern,
133 const char *startdatetime,
134 const char *enddatetime,
135 int numlines,
136 void *ophandle,
137 int async);
138
151SOMAPI_CDECL int SOMLogfileList (struct SOMSession *session,
152 const char *filepattern,
153 void *ophandle,
154 int async);
155
156
157/* \} */
158
159#endif /* _SOM_MTAPI_H */
void SOMLogfileCallback(struct SOMSession *session, void *ophandle, void *clientdata, int status, const char *opdata, size_t opdatalen)
Prototype for callback for logfile operation completion.
Definition logfile.h:46
int SOMLogfileList(struct SOMSession *session, const char *filepattern, void *ophandle, int async)
List log files.
int SOMLogfileView(struct SOMSession *session, const char *filepattern, const char *searchpattern, const char *startdatetime, const char *enddatetime, int numlines, void *ophandle, int async)
View lines from log files.
int SOMLogfileMonitor(struct SOMSession *session, const char *filepattern, const char *searchpattern, int interval, void *ophandle, int async)
Set Logfile monitoring.
int SOMLogfileSetCallback(struct SOMSession *session, SOMLogfileCallback *callback, SOMLogfileCallback **oldvalue)
Set the logfile callback function for this session.
Switch Operation Management Interface.
Opaque session data.

All rights reserved © 2002 - 2024 Isode Ltd.