From: Carl Worth Date: Mon, 4 Nov 2013 23:09:41 +0000 (-0800) Subject: Make definition of context_t private to context.c X-Git-Url: https://git.cworth.org/git?p=fips;a=commitdiff_plain;h=1063166ac2d706f8bbd325ecfd0580a0d1b04b21 Make definition of context_t private to context.c This is possible now that the metrics.c code is no longer trying to peek inside the context_t structure. --- diff --git a/context.c b/context.c index 933e1ed..133c37c 100644 --- a/context.c +++ b/context.c @@ -23,6 +23,15 @@ #include "metrics.h" #include "xmalloc.h" +typedef struct context +{ + /* Pointer to the system's context ID, (such as a GLXContext) */ + void *system_id; + + metrics_info_t metrics_info; + metrics_t *metrics; +} context_t; + context_t *current_context; static context_t * diff --git a/context.h b/context.h index 071b5f4..cbfd6b4 100644 --- a/context.h +++ b/context.h @@ -27,15 +27,6 @@ #include "fips-dispatch.h" -typedef struct context -{ - /* Pointer to the system's context ID, (such as a GLXContext) */ - void *system_id; - - metrics_info_t metrics_info; - metrics_t *metrics; -} context_t; - /* Indicate that a new context has come into use. * * Here, 'system_context_id' is a pointer to a system context (such as