]> git.cworth.org Git - fips/commitdiff
Make definition of context_t private to context.c
authorCarl Worth <cworth@cworth.org>
Mon, 4 Nov 2013 23:09:41 +0000 (15:09 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 4 Nov 2013 23:38:57 +0000 (15:38 -0800)
This is possible now that the metrics.c code is no longer trying to
peek inside the context_t structure.

context.c
context.h

index 933e1ed03207ad2e533ae0b68a6000f924a73d1f..133c37c168d6b04016579cbf3ccbd3938f11e241 100644 (file)
--- a/context.c
+++ b/context.c
 #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 *
index 071b5f41826976018d0deadecbf81973a2c675da..cbfd6b48f0dbc315f824a28255f8ddf7960c48c3 100644 (file)
--- a/context.h
+++ b/context.h
 
 #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