From 1063166ac2d706f8bbd325ecfd0580a0d1b04b21 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 4 Nov 2013 15:09:41 -0800 Subject: [PATCH] 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. --- context.c | 9 +++++++++ context.h | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) 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 -- 2.43.0