summaryrefslogtreecommitdiffstats
path: root/src/include/iprop_hdr.h
blob: 9027c76cf928d8fcdc5c4147b95af3a6d70bf068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
 * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 */


#ifndef _IPROP_HDR_H
#define _IPROP_HDR_H

/* #pragma ident        "@(#)iprop_hdr.h        1.1     04/02/20 SMI" */

#ifdef  __cplusplus
extern "C" {
#endif

/*
 * This file has some defines common to the iprop client and
 * server routines.
 */

/*
 * Maximum size for each ulog entry is 2KB and maximum
 * possible attribute-value pairs for each ulog entry is 20
 */
#define MAXENTRY_SIZE   2048
#define MAXATTRS_SIZE   20

#define KIPROP_SVC_NAME "kiprop"
#define MAX_BACKOFF     300     /* Backoff for a maximum for 5 mts */

enum iprop_role {
    IPROP_NULL = 0,
    IPROP_MASTER = 1,
    IPROP_SLAVE = 2
};
typedef enum iprop_role iprop_role;

/*
 * Full resync dump versioning
 */
#define IPROPX_VERSION_0    0
#define IPROPX_VERSION_1    1
#define IPROPX_VERSION      IPROPX_VERSION_1

#ifdef  __cplusplus
}
#endif

#endif /* !_IPROP_HDR_H */