-
Notifications
You must be signed in to change notification settings - Fork 0
/
bridge.h
48 lines (40 loc) · 835 Bytes
/
bridge.h
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
45
46
47
48
/*
* Copyright (C) 2010,2011 by Milan Kazarka
*
* You may distribute under the terms of the Artistic License,
* as specified in the README file.
*
*/
#ifndef _BRIDGE_H_
#define _BRIDGE_H_
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/shm.h>
#include <pthread.h>
#include <semaphore.h>
typedef struct mikaBridge
{
unsigned char name[64];
int semaphore;
int w;
int h;
} mikaBridge;
typedef struct mikaWidget
{
int semaphore;
int x;
int y;
int w;
int h;
} mikaWidget;
struct mikaBridge *mikaBridgeInit( unsigned char *name );
int mikaBridgeExposeBuffer( struct mikaBridge *bridge, void *buffer );
struct mikaWidget *mikaWidgetAlloc( );
#endif