summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2011-01-07 14:42:20 +0000
committerIan C <ianc@noddybox.co.uk>2011-01-07 14:42:20 +0000
commitbb652fd56a4515acecae5631641d3a0ac2909bef (patch)
tree3b264cc7ee0b7cf906c9e81e7efd3a5808465d9d
parent7523d7b685d835aab01f0253ba9530de7b5446d4 (diff)
Devel checkin
-rw-r--r--include/graviface.h21
1 files changed, 15 insertions, 6 deletions
diff --git a/include/graviface.h b/include/graviface.h
index 9e422fa..a632e3d 100644
--- a/include/graviface.h
+++ b/include/graviface.h
@@ -45,8 +45,8 @@ typedef void *grav_interface_t;
/* ---------------------------------------------------------------------------
This structure is passed to the driver on initialisation so it can check
- compataility. The first field is guaranteed to be an int
- holding GRAV_INTERFACE_VERSION.
+ compataility. The first field is guaranteed to be an int holding
+ GRAV_INTERFACE_VERSION.
*/
typedef struct
{
@@ -59,11 +59,15 @@ typedef struct
int grav_mp_version_major;
int grav_mp_version_minor;
- /* An interface the driver can use to query the loaded config. If the
- variable is undefined NULL is returned, else its value.
+ /* An interface the driver can use to iterate over loaded config.
+ p_func is called for every variable in the section along with the
+ pass client data.
*/
const char (*grav_config_func)(const char *p_section,
- const char *p_variable);
+ void (*p_func)(void *p_client_data,
+ const char *p_section,
+ const char *p_value),
+ void *p_client_data);
/* An interface the driver can use to request termination. p_reason can
be NULL.
@@ -74,8 +78,13 @@ typedef struct
/* ---------------------------------------------------------------------------
- Drawing commands? -- Pass structs with masses, or discrete drawing funcs?
+ This structure defines a mass to be drawn. Masses are passed in arbitary
+ order. Each mass has a unique identifier, which is defined by "id".
*/
+typedef struct
+{
+ mpz_t id;
+} grav_public_mass_t;
/* ---------------------------------------------------------------------------