File: gralloc.h

package info (click to toggle)
mcl 1%3A14-137-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd, stretch
  • size: 10,704 kB
  • ctags: 5,125
  • sloc: ansic: 53,217; sh: 4,448; perl: 3,967; makefile: 422
file content (52 lines) | stat: -rw-r--r-- 954 bytes parent folder | download | duplicates (9)
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
49
50
51
52
/*   (C) Copyright 2004, 2005, 2006, 2007, 2008, 2009 Stijn van Dongen
 *
 * This file is part of tingea.  You can redistribute and/or modify tingea
 * under the terms of the GNU General Public License; either version 3 of the
 * License or (at your option) any later version.  You should have received a
 * copy of the GPL along with tingea, in the file COPYING.
*/

#ifndef tingea_gralloc_h
#define tingea_gralloc_h

#include "types.h"

/*
 * gralloc; grid memory allocation; allocation of equally sized chunks
*/

typedef struct mcxGrim mcxGrim;

#define MCX_GRIM_GEOMETRIC    1
#define MCX_GRIM_ARITHMETIC   2

mcxGrim* mcxGrimNew
(  dim       sz_unit
,  dim       n_units      /* initial capacity */
,  mcxbits  options
)  ;  

void* mcxGrimGet
(  mcxGrim*   src
)  ;

void mcxGrimLet
(  mcxGrim* src
,  void* mem
)  ;

dim mcxGrimCount
(  mcxGrim* src
)  ;

dim mcxGrimMemSize
(  mcxGrim* src
)  ;

void mcxGrimFree
(  mcxGrim** src
)  ;

#endif