Main Page | Data Structures | File List | Globals

include/pap_proto.h

00001 /*
00002 ** mouse:~ppr/src/include/pap_proto.h
00003 ** Trinity College abandons any copyright claim to this file.
00004 ** Written by David Chappell.
00005 **
00006 ** Last modified 8 September 2000.
00007 */
00008 
00009 /*
00010 ** This file contains function definitions for the AT&T/Apple AppleTalk 
00011 ** Library Interface.
00012 **
00013 ** For some reason AT&T/NCR does not supply an include file with prototypes for
00014 ** these funtions.  This one has been built from the descriptions in the ALI
00015 ** reference manual.
00016 */
00017 
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021 
00022 int nbp_parse_entity(at_entity_t *entity, const char *str);
00023 int nbp_lookup(at_entity_t *entity, at_nbptuple_t *buf, int max, at_retry_t *retry, u_char *more);
00024 int nbp_register(at_entity_t *entity, int fd, at_retry_t *retry);
00025 int nbp_remove(at_entity_t *entity, int fd);
00026 int nbp_confirm(at_entity_t *entity, at_inet_t *dest, at_retry_t *retry);
00027 
00028 /* These function prototypes differ slightly from those given in the AT&T from manual 
00029    which makes the improbable claim that status is a char pointer. */
00030 int pap_open(at_nbptuple_t *tuple, u_short *quantum, unsigned char *status, short retry);
00031 int paps_status(int fd, unsigned char *status);
00032 int pap_status(at_nbptuple_t *tuple, unsigned char *status);
00033 
00034 int pap_close(int fd);
00035 int pap_look(int fd);
00036 int pap_look(int fd);
00037 int pap_read(int fd, char *data, int len, u_char *eof_flag);
00038 int pap_sync(int fd);
00039 int pap_write(int fd, const char *data, int len, u_char eof_flag, u_char mode);
00040 int paps_get_next_job(int fd, u_short *quantum, at_inet_t *src);
00041 int paps_open(u_short quantum);
00042 
00043 /*
00044 ** Unless David Chappell's ALI compatibility library for Netatalk (NATALI)
00045 ** is being used instead of the real ALI, define the macro pap_abrupt_close(). 
00046 ** There is a function of this name provided by NATALI.  In the AT&T ALI
00047 ** implementation an equivelent operation may be performed by simply calling
00048 ** close().
00049 */
00050 #ifndef _NATALI_PAP
00051 #define pap_abrupt_close close
00052 #endif
00053 
00054 #ifdef __cplusplus
00055 } ;
00056 #endif
00057 
00058 /* end of file */

Generated on Fri Feb 20 15:17:48 2004 for PPR Libraries by doxygen 1.3.5