179 lines
4.3 KiB
C
179 lines
4.3 KiB
C
/***********************************************************************
|
|
*
|
|
* Copyright (C) 2005-2006 Novell, Inc. All Rights Reserved.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; version 2.1
|
|
* of the License.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, Novell, Inc.
|
|
*
|
|
* To contact Novell about this file by physical or electronic mail,
|
|
* you may find current contact information at www.novell.com.
|
|
*
|
|
***********************************************************************/
|
|
|
|
#if ! defined ( NWDSPART_H )
|
|
#define NWDSPART_H
|
|
|
|
#if ! defined ( NTYPES_H )
|
|
#include "ntypes.h"
|
|
#endif
|
|
|
|
#if ! defined ( NWDSTYPE_H )
|
|
#include "nwdstype.h"
|
|
#endif
|
|
|
|
#if ! defined ( NWDSBUFT_H )
|
|
#include "nwdsbuft.h"
|
|
#endif
|
|
|
|
#if ! defined ( NWDSDC_H )
|
|
#include "nwdsdc.h"
|
|
#endif
|
|
|
|
#include "npackon.h"
|
|
|
|
/*---------------------------------------------------------------------------
|
|
* flags which specify partition info output of
|
|
* DSV_LIST_PARTITIONS
|
|
*/
|
|
#define DSP_OUTPUT_FIELDS 0x00000001L
|
|
#define DSP_PARTITION_ID 0x00000002L
|
|
#define DSP_REPLICA_STATE 0x00000004L
|
|
#define DSP_MODIFICATION_TIMESTAMP 0x00000008L
|
|
#define DSP_PURGE_TIME 0x00000010L
|
|
#define DSP_LOCAL_PARTITION_ID 0x00000020L
|
|
#define DSP_PARTITION_DN 0x00000040L
|
|
#define DSP_REPLICA_TYPE 0x00000080L
|
|
#define DSP_PARTITION_BUSY 0x00000100L
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
N_EXTERN_LIBRARY (NWDSCCODE)
|
|
NWDSAddReplica
|
|
(
|
|
NWDSContextHandle context,
|
|
pnstr8 server,
|
|
pnstr8 partitionRoot,
|
|
nuint32 replicaType
|
|
);
|
|
|
|
N_EXTERN_LIBRARY (NWDSCCODE)
|
|
NWDSChangeReplicaType
|
|
(
|
|
NWDSContextHandle context,
|
|
pnstr8 replicaName,
|
|
pnstr8 server,
|
|
nuint32 newReplicaType
|
|
);
|
|
|
|
N_EXTERN_LIBRARY (NWDSCCODE)
|
|
NWDSJoinPartitions
|
|
(
|
|
NWDSContextHandle context,
|
|
pnstr8 subordinatePartition,
|
|
nflag32 flags
|
|
);
|
|
|
|
N_EXTERN_LIBRARY (NWDSCCODE)
|
|
NWDSListPartitions
|
|
(
|
|
NWDSContextHandle context,
|
|
pnint32 iterationHandle,
|
|
pnstr8 server,
|
|
pBuf_T partitions
|
|
);
|
|
|
|
N_GLOBAL_LIBRARY (NWDSCCODE)
|
|
NWDSListPartitionsExtInfo
|
|
(
|
|
NWDSContextHandle context,
|
|
pnint32 iterationHandle,
|
|
pnstr8 server,
|
|
nflag32 DSPFlags,
|
|
pBuf_T partitions
|
|
);
|
|
|
|
N_EXTERN_LIBRARY (NWDSCCODE)
|
|
NWDSRemovePartition
|
|
(
|
|
NWDSContextHandle context,
|
|
pnstr8 partitionRoot
|
|
);
|
|
|
|
N_EXTERN_LIBRARY (NWDSCCODE)
|
|
NWDSRemoveReplica
|
|
(
|
|
NWDSContextHandle context,
|
|
pnstr8 server,
|
|
pnstr8 partitionRoot
|
|
);
|
|
|
|
N_EXTERN_LIBRARY (NWDSCCODE)
|
|
NWDSSplitPartition
|
|
(
|
|
NWDSContextHandle context,
|
|
pnstr8 subordinatePartition,
|
|
nflag32 flags
|
|
);
|
|
|
|
N_EXTERN_LIBRARY (NWDSCCODE)
|
|
NWDSPartitionReceiveAllUpdates
|
|
(
|
|
NWDSContextHandle context,
|
|
pnstr8 partitionRoot,
|
|
pnstr8 serverName
|
|
);
|
|
|
|
N_EXTERN_LIBRARY (NWDSCCODE)
|
|
NWDSPartitionSendAllUpdates
|
|
(
|
|
NWDSContextHandle context,
|
|
pnstr8 partitionRoot,
|
|
pnstr8 serverName
|
|
);
|
|
|
|
N_EXTERN_LIBRARY (NWDSCCODE)
|
|
NWDSSyncPartition
|
|
(
|
|
NWDSContextHandle context,
|
|
pnstr8 server,
|
|
pnstr8 partition,
|
|
nuint32 seconds
|
|
);
|
|
|
|
N_EXTERN_LIBRARY (NWDSCCODE)
|
|
NWDSAbortPartitionOperation
|
|
(
|
|
NWDSContextHandle context,
|
|
pnstr8 partitionRoot
|
|
);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
/* The NLM LibC x-plat libraries do not support obsolete apis
|
|
*/
|
|
#include <stddef.h>
|
|
#if !defined(__NOVELL_LIBC__)
|
|
#ifdef INCLUDE_OBSOLETE
|
|
#include "obsolete/o_dspart.h"
|
|
#endif
|
|
#endif /* !defined(__NOVELL_LIBC__) */
|
|
|
|
#include "npackoff.h"
|
|
#endif /* NWDSPART_H */
|