1#include "Python.h"
2#include "pyobjc-api.h"
3#import <ApplicationServices/ApplicationServices.h>
4
5static PyObjC_function_map function_map[] = {
6	{"CGPointMake", (PyObjC_Function_Pointer)&CGPointMake },
7	{"CGRectMake", (PyObjC_Function_Pointer)&CGRectMake },
8	{"CGSizeMake", (PyObjC_Function_Pointer)&CGSizeMake },
9	{"__CGAffineTransformMake", (PyObjC_Function_Pointer)&__CGAffineTransformMake },
10	{"__CGPointApplyAffineTransform", (PyObjC_Function_Pointer)&__CGPointApplyAffineTransform },
11	{"__CGSizeApplyAffineTransform", (PyObjC_Function_Pointer)&__CGSizeApplyAffineTransform },
12    { 0, 0 }
13};
14
15static PyMethodDef mod_methods[] = {
16        { 0, 0, 0, 0 } /* sentinel */
17};
18
19PyObjC_MODULE_INIT(_inlines)
20{
21    PyObject* m = PyObjC_MODULE_CREATE(_inlines);
22    if (!m) PyObjC_INITERROR();
23
24    if (PyModule_AddObject(m, "_inline_list_", 
25        PyObjC_CreateInlineTab(function_map)) < 0) PyObjC_INITERROR();
26
27    PyObjC_INITDONE();
28}
29