#ifndef CONTEXT_H
#define CONTEXT_H
+#include "metrics.h"
+#include "metrics-info.h"
+
#include "fips-dispatch.h"
-/* Inidcate that a new context has come into use.
+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
* a GLXContext) which fips can use to map to persistent contex_t
void
context_leave (void);
+/* Get the current context. */
+context_t *
+context_get_current (void);
+
#endif