]> andersk Git - moira.git/blobdiff - server/query.h
second code style cleanup: void/void * usage, proper #includes. try to
[moira.git] / server / query.h
index ffb3af810c725eeb5160a9864c83464c697f5f5a..8cb6b777cbc2ed084bf4d88d9b71be4403a55bc2 100644 (file)
@@ -1,6 +1,10 @@
-/* $Header$
+/* $Id$
  *
  * Structures and constants used in the query dispatch table
+ *
+ * Copyright (C) 1987-1998 by the Massachusetts Institute of Technology.
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
  */
 
 /* Query Types */
@@ -46,15 +50,15 @@ struct validate
   /* values field containing current max object id */
   char *object_id;
   /* routine to verify access permission on objects */
-  int (*acs_rtn)();
+  int (*acs_rtn)(struct query *q, char *Argv[], client *cl);
   /* pre-processing routine (var setup only) */
-  int (*pre_rtn)();
+  int (*pre_rtn)(struct query *q, char *Argv[], client *cl);
   /* post-processing routine */
   int (*post_rtn)();
 };
 
 /* Validated Object Types */
-enum vo_type {V_NAME, V_ID, V_TYPE, V_TYPEDATA, V_DATE,
+enum vo_type {V_NAME, V_ID, V_TYPE, V_TYPEDATA,
              V_SORT, V_RENAME, V_CHAR, V_LOCK, V_WILD, V_UPWILD,
               V_RLOCK, V_LEN};
 
@@ -93,6 +97,8 @@ int check_query_access(struct query *q, char *argv[], client *cl);
 int set_next_object_id(char *objectx, enum tables table, int limit);
 
 /* prototypes from qsubs.c */
-void list_queries(int version, int (*action)(), char *actarg);
-void help_query(struct query *q, int (*action)(), char *actarg);
+void list_queries(int version, int (*action)(int, char *[], void *),
+                 void *actarg);
+void help_query(struct query *q, int (*action)(int, char *[], void *),
+               void *actarg);
 struct query *get_query_by_name(char *name, int version);
This page took 0.035738 seconds and 4 git commands to generate.