summaryrefslogtreecommitdiff
path: root/cubedbus.h
blob: 369062c59ba991de021f1385152dd08f5392c8fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <stdbool.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>

#include <compiz-core.h>

typedef struct _CubedbusObject CubedbusObject;

static bool cubedbusGenerateDList (CompOption *option, int nOption, GLuint *dList);
static bool cubedbusAddStdObject (CompOption *option, int nOption, CubedbusObject *head, CompScreen *s, char *name);

/* Struct containing pointer to data struct and pointer to function to draw */

struct _CubedbusObject
{
	int type;
	char name[16];
	
	bool (*func) (CubedbusObject *obj);
	bool (*delfunc) (CubedbusObject *obj);
	bool (*modfunc) (CubedbusObject *obj, CompOption *option, int nOption);
	bool (*addfunc) (CubedbusObject *obj, CompOption *option, int nOption);
	void *data;

	CompScreen *s;
	
	CubedbusObject *next;
	CubedbusObject *prev;	
};

typedef struct _CubedbusName
{
int n;
char **string;
}CubedbusName;

static bool
cubedbusGetName(char *name, CubedbusName *storage);


//global variable (not part of Compiz style)
float timeSec;