cvs commit: ALFS/nALFS/src handlers.h

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Fri Feb 13 20:31:12 PST 2004


kpfleming    04/02/13 21:31:12

  Modified:    nALFS/src handlers.h
  Log:
  add prototypes for handler string parsing functions
  add parse_content element to handler_info_s structure
  
  Revision  Changes    Path
  1.13      +12 -2     ALFS/nALFS/src/handlers.h
  
  Index: handlers.h
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers.h,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- handlers.h	13 Feb 2004 07:08:59 -0000	1.12
  +++ handlers.h	14 Feb 2004 04:31:12 -0000	1.13
  @@ -39,6 +39,7 @@
   	HTYPE_FALSE_RESULT = 32,/* handler should be run for a false test */
   	HTYPE_EXECUTE = 64,
   	HTYPE_STAGE = 128,      /* handler is a stage container */
  +	HTYPE_STAGEINFO = 256,  /* handler provides stage information */
   } handler_type_e;
   
   typedef enum handler_data_e {
  @@ -48,9 +49,10 @@
   typedef char *(*handler_data_f)(element_s *, handler_data_e data);
   typedef int (*handler_f)(element_s *);
   typedef int (*handler_test)(element_s *, int *);
  -typedef int (*handler_parse)(element_s *, const char *, const char *);
   typedef int (*handler_setup)(element_s *);
  -typedef int (*handler_valid)(element_s *);
  +typedef int (*handler_parse)(const element_s *, const char *, const char *);
  +typedef int (*handler_parse_content)(const element_s *, const char *);
  +typedef int (*handler_valid)(const element_s *);
   
   typedef struct handler_info_s {
   	const char *name;		/* Name of the element it handles. */
  @@ -85,6 +87,7 @@
   	handler_valid valid;	/* Function to validate private data. */
   	handler_parse parse_attribute;
   	handler_parse parse_parameter;
  +	handler_parse_content parse_content;
   } handler_info_s;
   
   
  @@ -118,5 +121,12 @@
   void check_options(int total, int *opts, const char *string_, element_s *el);
   char *append_param_elements(char **string, element_s *el);
   char *append_prefix_elements(char **string, element_s *el);
  +
  +char *parse_string_attribute(const char * const value,
  +			     const char * const message);
  +char *parse_string_parameter(const char * const value,
  +			     const char * const message);
  +char *parse_string_content(const char * const value,
  +			   const char * const message);
   
   #endif /* H_HANDLER_ */
  
  
  



More information about the alfs-log mailing list