pio.h 713 B

12345678910111213141516171819202122232425262728293031323334353637
  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. {
  17. char *token;
  18. int (*fn)(char *, char *);
  19. };
  20. #define III_PIO_SZ(x) (sizeof(x) / sizeof(struct iii_pio_parsetab))
  21. extern int iii_pio_procparse(
  22. const char *cmd,
  23. int count,
  24. struct iii_pio_parsetab *);
  25. extern int iii_pio_getnum(
  26. const char *cmd,
  27. long *valPtr);
  28. #endif /* _H_III_PIO_H */