source: trunk/third/moira/clients/moira/defs.h @ 23740

Revision 23740, 1.4 KB checked in by broder, 16 years ago (diff)
In moira: * New CVS snapshot (Trac: #195) * Drop patches that have been incorporated upstream. * Update to build without krb4 on systems that no longer have it. This doesn't build yet on squeeze, which lacks a krb4 library, but I'm committing now before I start hacking away at a patch to fix that.
Line 
1/* $Id: defs.h,v 1.27 2007-12-03 20:40:56 zacheiss Exp $
2 *
3 *      This is the file defs.h for the Moira Client, which allows users
4 *      to quickly and easily maintain most parts of the Moira database.
5 *      It Contains: useful definitions.
6 *
7 *      Created:        4/12/88
8 *      By:             Chris D. Peterson
9 *
10 * Copyright (C) 1988-1998 by the Massachusetts Institute of Technology.
11 * For copying and distribution information, please see the file
12 * <mit-copyright.h>.
13 */
14
15#include <mit-copyright.h>
16
17#ifndef _defs_header_
18#define _defs_header_
19
20#ifndef TRUE
21#define TRUE 1
22#endif /* TRUE */
23
24#ifndef FALSE
25#define FALSE 0
26#endif /* FALSE */
27
28
29/* Modification information is always printed in this format. */
30
31#define MOD_FORMAT ("Last mod by %s at %s with %s.")
32
33/* Some common default values. */
34
35#define DEFAULT_NONE    ("")
36#define DEFAULT_YES     ("1")
37#define DEFAULT_NO      ("0")
38#define DEFAULT_COMMENT ("none")
39
40#define SUB_NORMAL 0
41#define SUB_ERROR 1
42
43#define MAX_ARGS_SIZE 200
44
45typedef int Bool;
46
47#define IS_EMPTY(s)  (strlen((s)) == 0)
48
49#define WILDCARD     ('*')
50
51/* What version of the queries are we asking for? */
52
53#define QUERY_VERSION 12
54
55/* This is unimplemented in the menu stuff, but would be nice. */
56
57#define FORMFEED     Put_message(" ")
58
59/* NOT for use with insqueue and remque. */
60
61struct mqelem {
62  struct mqelem *q_forw;
63  struct mqelem *q_back;
64  void *q_data;
65};
66
67#endif /* _defs_header_ */      /* Do Not Add Anything After This Line */
Note: See TracBrowser for help on using the repository browser.