pio.h 700 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. *
  6. * License: GPL (version 3 or any later version).
  7. * See LICENSE for details.
  8. * END COPYRIGHT BLOCK **/
  9. #ifdef HAVE_CONFIG_H
  10. # include <config.h>
  11. #endif
  12. #ifndef _H_III_PIO_H
  13. #define _H_III_PIO_H
  14. #include <stdio.h>
  15. struct iii_pio_parsetab {
  16. char *token;
  17. int (*fn)(char *,char *);
  18. };
  19. #define III_PIO_SZ(x) (sizeof(x)/sizeof(struct iii_pio_parsetab))
  20. extern int iii_pio_procparse (
  21. const char *cmd,
  22. int count,
  23. struct iii_pio_parsetab *
  24. );
  25. extern int iii_pio_getnum (
  26. const char *cmd,
  27. long *valPtr
  28. );
  29. #endif /* _H_III_PIO_H */