root / trunk / pysoy / include / glib.pxd

Revision 1265, 4.3 kB (checked in by ArcRiley, 5 months ago)

Pyrex 0.9.8.2 fixes :

  • now requires 0.9.8.2
  • nogil goes everywhere
  • a few functions got GIL-cleaned
  • still doesn't compile, but many steps closer
  • Property svn:keywords set to Id
Line 
1# GLib Declarations
2#
3# Copyright (C) 2006,2007,2008 PySoy Group
4#
5#  This program is free software; you can redistribute it and/or modify
6#  it under the terms of the GNU Affero General Public License as published
7#  by the Free Software Foundation, either version 3 of the License, or
8#  (at your option) any later version.
9#
10#  This program is distributed in the hope that it will be useful,
11#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13#  GNU Affero General Public License for more details.
14#
15#  You should have received a copy of the GNU Affero General Public License
16#  along with this program; if not, see http://www.gnu.org/licenses
17#
18# $Id$
19
20
21cdef extern from "glib.h" nogil :
22  ctypedef void*           gpointer
23  ctypedef void*           gconstpointer
24  ctypedef char            gchar
25  ctypedef short           gshort
26  ctypedef long            glong
27  ctypedef int             gint
28  ctypedef gint            gboolean
29  ctypedef unsigned char   guchar
30  ctypedef unsigned short  gushort
31  ctypedef unsigned long   gulong
32  ctypedef unsigned int    guint
33  ctypedef float           gfloat
34  ctypedef double          gdouble
35
36  cdef     gpointer  g_malloc          ( gulong )
37  cdef     void      g_free            ( gpointer )
38
39  ctypedef struct GThreadFunctions :
40    void* none
41
42  ctypedef struct GHashTable :
43    void* none
44
45  ctypedef struct GAsyncQueue :
46    void* none
47
48  ctypedef gboolean  GHRFunc           ( gpointer, gpointer, gpointer )
49  ctypedef gint      GCompareFunc      ( gconstpointer, gconstpointer )
50  ctypedef gint      GCompareDataFunc  ( gconstpointer, gconstpointer, gpointer )
51  ctypedef gboolean  GEqualFunc        ( gconstpointer, gconstpointer )
52  ctypedef void      GDestroyNotify    ( gpointer )
53  ctypedef void      GFunc             ( gpointer, gpointer )
54  ctypedef guint     GHashFunc         ( gconstpointer )
55  ctypedef void      GHFunc            ( gpointer, gpointer, gpointer )
56  ctypedef void      GFreeFunc         ( gpointer )
57  ctypedef gchar*    GTranslateFunc    ( gchar*, gpointer )
58
59  cdef gboolean    g_str_equal                    ( gconstpointer, gconstpointer )
60  cdef guint       g_str_hash                     ( gconstpointer )
61  cdef gboolean    g_int_equal                    ( gconstpointer, gconstpointer )
62  cdef guint       g_int_hash                     ( gconstpointer )
63  cdef gboolean    g_direct_equal                 ( gconstpointer, gconstpointer )
64  cdef guint       g_direct_hash                  ( gconstpointer )
65
66  cdef GHashTable* g_hash_table_new               ( GHashFunc, GEqualFunc )
67  cdef GHashTable* g_hash_table_new_full          ( GHashFunc, GEqualFunc, GDestroyNotify, GDestroyNotify )
68  cdef void        g_hash_table_destroy           ( GHashTable* )
69  cdef void        g_hash_table_insert            ( GHashTable*, gpointer, gpointer )
70  cdef void        g_hash_table_replace           ( GHashTable*, gpointer, gpointer )
71  cdef gboolean    g_hash_table_remove            ( GHashTable*, gconstpointer )
72  cdef void        g_hash_table_remove_all        ( GHashTable* )
73  cdef gboolean    g_hash_table_steal             ( GHashTable*, gconstpointer )
74  cdef void        g_hash_table_steal_all         ( GHashTable* )
75  cdef gpointer    g_hash_table_lookup            ( GHashTable*, gconstpointer )
76  cdef gboolean    g_hash_table_lookup_extended   ( GHashTable*, gconstpointer, gpointer*, gpointer* )
77  cdef void        g_hash_table_foreach           ( GHashTable*, GHFunc, gpointer )
78  cdef gpointer    g_hash_table_find              ( GHashTable*, GHRFunc, gpointer )
79  cdef guint       g_hash_table_foreach_remove    ( GHashTable*, GHRFunc, gpointer )
80  cdef guint       g_hash_table_foreach_steal     ( GHashTable*, GHRFunc, gpointer )
81  cdef guint       g_hash_table_size              ( GHashTable* )
82  cdef GHashTable* g_hash_table_ref               ( GHashTable* )
83  cdef void        g_hash_table_unref             ( GHashTable* )
84
85  cdef     void      g_thread_init     ( GThreadFunctions* )
86
87  cdef GAsyncQueue*  g_async_queue_new            ( )
88  cdef void          g_async_queue_unref          ( GAsyncQueue* )
89  cdef void          g_async_queue_push           ( GAsyncQueue*, gpointer )
90  cdef gpointer      g_async_queue_pop            ( GAsyncQueue* )
91
92  cdef gchar*      g_strdup                       ( gchar* )
Note: See TracBrowser for help on using the browser.