/* Generated by IDL compiler version OSF DCE T1.1.0-03 */
#ifndef DCEAPI 
# include <dce/dcedef.h> 
#endif 
#ifndef time_provider_v1_0_included
#define time_provider_v1_0_included
#ifndef IDLBASE_H
#include <dce/idlbase.h>
#endif
#include <dce/rpc.h>

#ifdef __cplusplus
    extern "C" {
#endif

#ifndef nbase_v0_0_included
#include <dce/nbase.h>
#endif
#ifndef utctypes_v0_0_included
#include <dce/utctypes.h>
#endif
#define K_MIN_TIMESTAMPS (1)
#define K_MAX_TIMESTAMPS (6)
#define K_TPI_FAILURE (0)
#define K_TPI_SUCCESS (1)
typedef struct TimeResponseType {
utc_t beforeTime;
utc_t TPtime;
utc_t afterTime;
} TimeResponseType;
typedef struct TPctlMsg {
idl_ulong_int status;
idl_ulong_int nextPoll;
idl_ulong_int timeout;
idl_ulong_int noClockSet;
} TPctlMsg;
typedef struct TPtimeMsg {
idl_ulong_int status;
idl_ulong_int timeStampCount;
TimeResponseType timeStampList[6];
} TPtimeMsg;
extern void  DCEAPI ContactProvider(
#ifdef IDL_PROTOTYPES
    /* [in] */ handle_t bind_h,
    /* [out] */ TPctlMsg *ctrlRespMsg,
    /* [out] */ error_status_t *comStatus
#endif
);
extern void  DCEAPI ServerRequestProviderTime(
#ifdef IDL_PROTOTYPES
    /* [in] */ handle_t bind_h,
    /* [out] */ TPtimeMsg *timesRspMsg,
    /* [out] */ error_status_t *comStatus
#endif
);
typedef struct time_provider_v1_0_epv_t {
void (* DCEAPI ContactProvider)(
#ifdef IDL_PROTOTYPES
    /* [in] */ handle_t bind_h,
    /* [out] */ TPctlMsg *ctrlRespMsg,
    /* [out] */ error_status_t *comStatus
#endif
);
void (* DCEAPI ServerRequestProviderTime)(
#ifdef IDL_PROTOTYPES
    /* [in] */ handle_t bind_h,
    /* [out] */ TPtimeMsg *timesRspMsg,
    /* [out] */ error_status_t *comStatus
#endif
);
} time_provider_v1_0_epv_t;
extern rpc_if_handle_t DCEVAR time_provider_v1_0_c_ifspec;
extern rpc_if_handle_t DCEVAR time_provider_v1_0_s_ifspec;

#ifdef __cplusplus
    }
#endif

#endif
