summaryrefslogtreecommitdiff
path: root/src/include/cctki_Schedule.h
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-01-16 11:07:13 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-01-16 11:07:13 +0000
commitcbd18a0c8a9d8682246f4388207257e494525d21 (patch)
tree44e32513b088854332388d4a5df8a07ac0f63ac3 /src/include/cctki_Schedule.h
parentd4b2a38965abaca84905600bd2dfe2363988c9fa (diff)
All include files for thorns now have cctk_ then a capital letter (!)
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1262 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctki_Schedule.h')
-rw-r--r--src/include/cctki_Schedule.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/include/cctki_Schedule.h b/src/include/cctki_Schedule.h
new file mode 100644
index 00000000..52f8210f
--- /dev/null
+++ b/src/include/cctki_Schedule.h
@@ -0,0 +1,64 @@
+ /*@@
+ @header cctki_Schedule.h
+ @date Wed Sep 15 22:49:24 1999
+ @author Tom Goodale
+ @desc
+ Schedule stuff which can be seen by the rest of the flesh.
+ @enddesc
+ @version $Header$
+ @@*/
+
+#ifndef _CCTKI_SCHEDULE_H_
+#define _CCTKI_SCHEDULE_H_
+
+/* Types needed by other routines. */
+
+typedef enum {sched_mod_none, sched_before, sched_after, sched_while} t_sched_modifier_type;
+
+typedef struct T_SCHED_MODIFIER
+{
+ struct T_SCHED_MODIFIER *next;
+
+ t_sched_modifier_type type;
+
+ char *argument;
+
+} t_sched_modifier;
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Routines to create items */
+t_sched_modifier *CCTKi_ScheduleAddModifier(t_sched_modifier *orig,
+ const char *modifier,
+ const char *argument);
+
+int CCTKi_ScheduleFunction(const char *gname,
+ const char *fname,
+ void *func,
+ t_sched_modifier *modifiers,
+ void *attributes);
+
+int CCTKi_ScheduleGroup(const char *gname,
+ const char *thisname,
+ t_sched_modifier *modifiers,
+ void *attributes);
+
+/* Routine to sort the groups - must be called before traversal. */
+int CCTKi_ScheduleSortAllGroups(void);
+
+/* Traversal routine */
+int CCTKi_ScheduleTraverse(const char *group_name,
+ int (*item_entry)(void *, void *),
+ int (*item_exit)(void *, void *),
+ int (*while_check)(int, char **, void *, void *),
+ int (*function_process)(void *, void *, void *),
+ void *data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _CCTKI_SCHEDULE_H_ */