xref: /netbsd-src/external/bsd/openldap/dist/libraries/liblutil/slapdmsg.h (revision 549b59ed3ccf0d36d3097190a0db27b770f3a839)
1 /*	$NetBSD: slapdmsg.h,v 1.2 2021/08/14 16:14:58 christos Exp $	*/
2 
3 //
4 // This file contains message strings for the OpenLDAP slapd service.
5 //
6 // This file should be compiled as follows
7 //   mc -v slapdmsg.mc  -r $(IntDir)
8 //   rc /v /r  $(IntDir)\slapdmsg.rc
9 // The mc (message compiler) command generates the .rc and .h files from this file. The
10 // rc (resource compiler) takes the .rc file and produces a .res file that can be linked
11 // with the final executable application. The application is then registered as a message
12 // source with by creating the appropriate entries in the system registry.
13 //
14 //
15 //  Values are 32 bit values laid out as follows:
16 //
17 //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
18 //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
19 //  +---+-+-+-----------------------+-------------------------------+
20 //  |Sev|C|R|     Facility          |               Code            |
21 //  +---+-+-+-----------------------+-------------------------------+
22 //
23 //  where
24 //
25 //      Sev - is the severity code
26 //
27 //          00 - Success
28 //          01 - Informational
29 //          10 - Warning
30 //          11 - Error
31 //
32 //      C - is the Customer code flag
33 //
34 //      R - is a reserved bit
35 //
36 //      Facility - is the facility code
37 //
38 //      Code - is the facility's status code
39 //
40 //
41 // Define the facility codes
42 //
43 
44 
45 //
46 // Define the severity codes
47 //
48 
49 
50 //
51 // MessageId: MSG_SVC_STARTED
52 //
53 // MessageText:
54 //
55 //  OpenLDAP service started. debuglevel=%1, conffile=%2, urls=%3
56 //
57 #define MSG_SVC_STARTED                  0x40000500L
58 
59 //
60 // MessageId: MSG_SVC_STOPPED
61 //
62 // MessageText:
63 //
64 //  OpenLDAP service stopped.
65 //
66 #define MSG_SVC_STOPPED                  0x40000501L
67 
68