Blame src/include/iprop_hdr.h

Packit Service 99d1c0
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
Packit Service 99d1c0
/*
Packit Service 99d1c0
 * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
Packit Service 99d1c0
 * Use is subject to license terms.
Packit Service 99d1c0
 */
Packit Service 99d1c0
Packit Service 99d1c0
Packit Service 99d1c0
#ifndef _IPROP_HDR_H
Packit Service 99d1c0
#define _IPROP_HDR_H
Packit Service 99d1c0
Packit Service 99d1c0
/* #pragma ident        "@(#)iprop_hdr.h        1.1     04/02/20 SMI" */
Packit Service 99d1c0
Packit Service 99d1c0
#ifdef  __cplusplus
Packit Service 99d1c0
extern "C" {
Packit Service 99d1c0
#endif
Packit Service 99d1c0
Packit Service 99d1c0
/*
Packit Service 99d1c0
 * This file has some defines common to the iprop client and
Packit Service 99d1c0
 * server routines.
Packit Service 99d1c0
 */
Packit Service 99d1c0
Packit Service 99d1c0
/*
Packit Service 99d1c0
 * Maximum size for each ulog entry is 2KB and maximum
Packit Service 99d1c0
 * possible attribute-value pairs for each ulog entry is 20
Packit Service 99d1c0
 */
Packit Service 99d1c0
#define MAXENTRY_SIZE   2048
Packit Service 99d1c0
#define MAXATTRS_SIZE   20
Packit Service 99d1c0
Packit Service 99d1c0
#define KIPROP_SVC_NAME "kiprop"
Packit Service 99d1c0
#define MAX_BACKOFF     300     /* Backoff for a maximum for 5 mts */
Packit Service 99d1c0
Packit Service 99d1c0
enum iprop_role {
Packit Service 99d1c0
    IPROP_NULL = 0,
Packit Service 99d1c0
    IPROP_MASTER = 1,
Packit Service 99d1c0
    IPROP_REPLICA = 2
Packit Service 99d1c0
};
Packit Service 99d1c0
typedef enum iprop_role iprop_role;
Packit Service 99d1c0
Packit Service 99d1c0
/*
Packit Service 99d1c0
 * Full resync dump versioning
Packit Service 99d1c0
 */
Packit Service 99d1c0
#define IPROPX_VERSION_0    0
Packit Service 99d1c0
#define IPROPX_VERSION_1    1
Packit Service 99d1c0
#define IPROPX_VERSION      IPROPX_VERSION_1
Packit Service 99d1c0
Packit Service 99d1c0
#ifdef  __cplusplus
Packit Service 99d1c0
}
Packit Service 99d1c0
#endif
Packit Service 99d1c0
Packit Service 99d1c0
#endif /* !_IPROP_HDR_H */