2006-03-10 18:39:22 +00:00

110 lines
2.6 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 ( NWACCT_H )
#define NWACCT_H
#if ! defined ( NTYPES_H )
#include "ntypes.h"
#endif
#if ! defined ( NWCALDEF_H )
#include "nwcaldef.h"
#endif
#include "npackon.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
nuint32 objectID;
nint32 amount;
} HOLDS_INFO;
typedef struct
{
nuint16 holdsCount;
HOLDS_INFO holds[16];
} HOLDS_STATUS;
N_EXTERN_LIBRARY( NWCCODE )
NWGetAccountStatus
(
NWCONN_HANDLE conn,
nuint16 objType,
const nstr8 N_FAR * objName,
pnint32 balance,
pnint32 limit,
HOLDS_STATUS N_FAR * holds
);
N_EXTERN_LIBRARY( NWCCODE )
NWQueryAccountingInstalled
(
NWCONN_HANDLE conn,
pnuint8 installed
);
N_EXTERN_LIBRARY( NWCCODE )
NWSubmitAccountCharge
(
NWCONN_HANDLE conn,
nuint16 objType,
const nstr8 N_FAR * objName,
nuint16 serviceType,
nint32 chargeAmt,
nint32 holdCancelAmt,
nuint16 noteType,
const nstr8 N_FAR * note
);
N_EXTERN_LIBRARY( NWCCODE )
NWSubmitAccountHold
(
NWCONN_HANDLE conn,
nuint16 objType,
const nstr8 N_FAR * objName,
nint32 holdAmt
);
N_EXTERN_LIBRARY( NWCCODE )
NWSubmitAccountNote
(
NWCONN_HANDLE conn,
nuint16 objType,
const nstr8 N_FAR * objName,
nuint16 serviceType,
nuint16 noteType,
const nstr8 N_FAR * note
);
#ifdef __cplusplus
}
#endif
#include "npackoff.h"
#endif