/* $Id: sbp.h,v 2.2 2005/12/20 14:15:23 ksb Exp $ */ typedef struct SMnode { char *pcmeth; char *pchelp; #if HAVE_ANSI_EXTERN void (*pficreate)(SBP_ENTRY **, int); /* create files */ int (*pficopy)(SBP_ENTRY *); /* copy partition */ int (*pfifinish)(int, SBP_ENTRY **); /* update fstab */ int (*pfiumount)(SBP_ENTRY *); /* unmount partition */ void (*pfiparams)(char *, struct SMnode *);/* decode :params */ #else void (*pficreate)(); /* create files */ int (*pficopy)(); /* copy partition */ int (*pfifinish)(); /* update fstab */ int (*pfiumount)(); /* unmount partition */ void (*pfiparams)(); /* decode :params */ #endif char *pcparam; /* decode help string */ } SBP_METHOD; #if !defined(MAX_BPI) #define MAX_BPI (1024*100) #endif #if HAVE_ANSI_EXTERN extern void DoSync(int, char **, SBP_ENTRY *); extern void MethHelp(FILE *); extern void SetHow(char *); #else extern void DoSync(); extern void MethHelp(); extern void SetHow(); #endif