~ubuntu-branches/ubuntu/oneiric/likewise-open/oneiric

« back to all changes in this revision

Viewing changes to eventlog/include/eventlog.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Salley
  • Date: 2010-11-22 12:06:00 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20101122120600-8lba1fpceot71wlb
Tags: 6.0.0.53010-1
Likewise Open 6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
#include <lw/attrs.h>
57
57
#endif
58
58
 
59
 
/* ERRORS */
60
 
#define EVT_ERROR_SUCCESS                   0x0000
61
 
#define EVT_ERROR_INVALID_CONFIG_PATH       0x9001 // 36865
62
 
#define EVT_ERROR_INVALID_PREFIX_PATH       0x9002 // 36866
63
 
#define EVT_ERROR_INSUFFICIENT_BUFFER       0x9003 // 36867
64
 
#define EVT_ERROR_OUT_OF_MEMORY             0x9004 // 36868
65
 
#define EVT_ERROR_INVALID_MESSAGE           0x9005 // 36869
66
 
#define EVT_ERROR_UNEXPECTED_MESSAGE        0x9006 // 36870
67
 
#define EVT_ERROR_NO_SUCH_USER              0x9007 // 36871
68
 
#define EVT_ERROR_DATA_ERROR                0x9008 // 36872
69
 
#define EVT_ERROR_NOT_IMPLEMENTED           0x9009 // 36873
70
 
#define EVT_ERROR_NO_CONTEXT_ITEM           0x900A // 36874
71
 
#define EVT_ERROR_NO_SUCH_GROUP             0x900B // 36875
72
 
#define EVT_ERROR_REGEX_COMPILE_FAILED      0x900C // 36876
73
 
#define EVT_ERROR_NSS_EDIT_FAILED           0x900D // 36877
74
 
#define EVT_ERROR_NO_HANDLER                0x900E // 36878
75
 
#define EVT_ERROR_INTERNAL                  0x900F // 36879
76
 
#define EVT_ERROR_NOT_HANDLED               0x9010 // 36880
77
 
#define EVT_ERROR_UNEXPECTED_DB_RESULT      0x9011 // 36881
78
 
#define EVT_ERROR_INVALID_PARAMETER         0x9012 // 36882
79
 
#define EVT_ERROR_LOAD_LIBRARY_FAILED       0x9013 // 36883
80
 
#define EVT_ERROR_LOOKUP_SYMBOL_FAILED      0x9014 // 36884
81
 
#define EVT_ERROR_INVALID_EVENTLOG          0x9015 // 36885
82
 
#define EVT_ERROR_INVALID_CONFIG            0x9016 // 36886
83
 
#define EVT_ERROR_STRING_CONV_FAILED        0x9017 // 36887
84
 
#define EVT_ERROR_INVALID_DB_HANDLE         0x9018 // 36888
85
 
#define EVT_ERROR_FAILED_CONVERT_TIME       0x9019 // 36889
86
 
#define EVT_ERROR_RPC_EXCEPTION_UPON_RPC_BINDING 0x901A // 36890
87
 
#define EVT_ERROR_RPC_EXCEPTION_UPON_OPEN   0x901B // 36891
88
 
#define EVT_ERROR_RPC_EXCEPTION_UPON_CLOSE  0x901C // 36892
89
 
#define EVT_ERROR_RPC_EXCEPTION_UPON_COUNT  0x901D // 36893
90
 
#define EVT_ERROR_RPC_EXCEPTION_UPON_READ   0x901E // 36894
91
 
#define EVT_ERROR_RPC_EXCEPTION_UPON_WRITE  0x901F // 36895
92
 
#define EVT_ERROR_RPC_EXCEPTION_UPON_CLEAR  0x9020 // 36896
93
 
#define EVT_ERROR_RPC_EXCEPTION_UPON_DELETE 0x9021 // 36897
94
 
#define EVT_ERROR_RPC_EXCEPTION_UPON_REGISTER 0x9022 // 36898
95
 
#define EVT_ERROR_RPC_EXCEPTION_UPON_UNREGISTER 0x9023 // 36899
96
 
#define EVT_ERROR_RPC_EXCEPTION_UPON_LISTEN 0x9024 // 36900
97
 
#define EVT_ERROR_RPC_EXCEPTION             0x9025 // 36901
98
 
#define EVT_ERROR_ACCESS_DENIED             0x9026 // 36902
99
 
#define EVT_ERROR_SENTINEL                  0x9027 // 36903
100
 
 
101
 
#define EVT_ERROR_MASK(_e_)             (_e_ & 0x9000)
102
 
 
103
 
#ifndef EINVAL
104
 
#define EINVAL 22
105
 
#endif
106
 
 
107
59
#ifndef PATH_MAX
108
60
#define PATH_MAX 1024
109
61
#endif
110
62
 
111
 
#ifndef ENOMEM
112
 
#define ENOMEM 12
113
 
#endif
114
 
 
115
63
#ifndef HOST_NAME_MAX
116
64
#define HOST_NAME_MAX 255
117
65
#endif
267
215
    );
268
216
 
269
217
VOID
 
218
LWIFreeEventRecordContents(
 
219
    PEVENT_LOG_RECORD pEventRecord
 
220
    );
 
221
 
 
222
VOID
270
223
LWIFreeEventRecordList(
271
224
    DWORD dwRecords,
272
225
    PEVENT_LOG_RECORD pEventRecordList