first version of the generic gui for the tracer

This commit is contained in:
Cedric Roux
2016-04-11 11:18:26 +02:00
parent ee6789cdde
commit 2bb04f0105
18 changed files with 1737 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
#include "gui.h"
#include "gui_defs.h"
#include "x.h"
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
void glock(gui *_gui)
{
struct gui *g = _gui;
if (pthread_mutex_lock(g->lock)) ERR("mutex error\n");
}
void gunlock(gui *_gui)
{
struct gui *g = _gui;
if (pthread_mutex_unlock(g->lock)) ERR("mutex error\n");
}
int new_color(gui *_gui, char *color)
{
struct gui *g = _gui;
return x_new_color(g->x, color);
}