/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/Box.h

  • Committer: Gustav Hartvigsson
  • Date: 2015-03-26 11:15:22 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150326111522-k6fq5kdbrvoeucok
* added skeleton for the SBox type.
  An SBox is a way of boxing non-SObject types in a reference-counted way.

* Added a few vector types in vec.h and vec.c.
  Still needs work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __H_BOX__
 
2
#define __H_BOX__
 
3
#include "defs.h"
 
4
#include "baseobject.h"
 
5
 
 
6
/** @file
 
7
 * An SBox is a boxed type.
 
8
 */
 
9
 
 
10
BEGIN_DECLS
 
11
 
 
12
/** @brief
 
13
 * A reference counted box sitting on top of an SObject
 
14
 */
 
15
typedef struct _SBox SBox;
 
16
 
 
17
typedef struct _SBoxClass SBoxClass;
 
18
 
 
19
typedef struct _SBoxPrivate SBoxPrivate;
 
20
 
 
21
struct _SBox {
 
22
  SObject parent;
 
23
  SBoxPrivate * priv;
 
24
}
 
25
 
 
26
struct _SBoxClass {
 
27
  SObjectClass parent_class;
 
28
}
 
29
 
 
30
 
 
31
 
 
32
END_DECLS
 
33
 
 
34
#endif