#ifndef _PAPI_IMPL_H
#define _PAPI_IMPL_H
#include <papi.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <time.h>
#include <sys/types.h>
#include <stdarg.h>
#include <uri.h>
typedef struct {
papi_attribute_t **attributes;
void *so_handle;
void *svc_handle;
char *name;
char *user;
char *password;
int (*authCB)(papi_service_t svc, void *app_data);
papi_encryption_t encryption;
void *app_data;
uri_t *uri;
int peer_fd;
} service_t;
typedef struct job {
service_t *svc;
papi_job_t *job;
} job_t;
typedef struct {
service_t *svc;
papi_printer_t *printer;
papi_attribute_t **attributes;
char svc_is_internal;
} printer_t;
extern papi_status_t psm_open(service_t *svc, char *name);
extern void *psm_sym(service_t *svc, char *name);
extern void psm_close(void *handle);
extern void detailed_error(service_t *svc, char *fmt, ...);
extern papi_status_t service_connect(service_t *svc, char *uri);
extern papi_attribute_t **getprinterentry(char *ns);
extern papi_attribute_t **getprinterbyname(char *name, char *ns);
extern int setprinterentry(int stayopen, char *ns);
extern int endprinterentry(int stayopen);
extern void list_remove();
#ifdef __cplusplus
}
#endif
#endif