From bb652fd56a4515acecae5631641d3a0ac2909bef Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 7 Jan 2011 14:42:20 +0000 Subject: Devel checkin --- include/graviface.h | 21 +++++++++++++++------ 1 file 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; /* --------------------------------------------------------------------------- -- cgit v1.2.3