pio.h 581 B

1234567891011121314151617181920212223242526272829303132
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright 2001 Sun Microsystems, Inc.
  3. * Portions copyright 1999, 2001-2003 Netscape Communications Corporation.
  4. * All rights reserved.
  5. * END COPYRIGHT BLOCK **/
  6. #ifndef _H_III_PIO_H
  7. #define _H_III_PIO_H
  8. #include <stdio.h>
  9. struct iii_pio_parsetab {
  10. char *token;
  11. int (*fn)(char *,char *);
  12. };
  13. #define III_PIO_SZ(x) (sizeof(x)/sizeof(struct iii_pio_parsetab))
  14. extern int iii_pio_procparse (
  15. const char *cmd,
  16. int count,
  17. struct iii_pio_parsetab *
  18. );
  19. extern int iii_pio_getnum (
  20. const char *cmd,
  21. long *valPtr
  22. );
  23. #endif /* _H_III_PIO_H */