summaryrefslogtreecommitdiff
path: root/systypes.h
blob: 28f7d8b1613d98b442aa5218487b770a08783c6a (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
/* \brief Nitpicker platform-dependent typedefs for Linux
 * \date  2006-08-16
 * \author Stephen Kell <Stephen.Kell@cl.cam.ac.uk>
 */

/* Copyright (c) 2006, Stephen Kell <Stephen.Kell@cl.cam.ac.uk>
 * Distributed under the terms of the GNU General Public Licence
 * version 2.
 */

#ifndef _NITPICKER_SYSTYPES_H_
#define _NITPICKER_SYSTYPES_H_

#define SHARED_BUFFER_INFO_NAME_LENGTH 64
typedef struct shared_buffer_info_t {
	char name[SHARED_BUFFER_INFO_NAME_LENGTH]; 
} shared_buffer_info_t;
#define DFBCHECK(x...) \
        {                                                                      \
           ret = x;                                                            \
           if (ret != DFB_OK) {                                                \
              fprintf( stderr, "%s <%d>:\n\t", __FILE__, __LINE__ );           \
              DirectFBErrorFatal( #x, ret );                                   \
           }                                                                   \
        }


#endif