Changeset 16509

Show
Ignore:
Timestamp:
05/30/08 11:48:49 (4 months ago)
Author:
piotras
Message:

Collector's and QB's type objects moved to their c files and accessible with public function.
It should fix qb's and collector's common symbols problem.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midgard/apis/python/py_midgard.h

    r16243 r16509  
    1717 */ 
    1818 
     19#ifndef PY_MIDGARD_H 
     20#define PY_MIDGARD_H 
     21 
     22#ifndef PY_MIDGARD_H_INT 
     23#define PY_MIDGARD_H_INT 
     24 
    1925#include <Python.h> 
    2026#include <pygobject.h> 
    2127#include <midgard/midgard.h> 
     28 
     29#endif  
    2230 
    2331#ifdef G_LOG_DOMAIN 
     
    6068extern MidgardConnection *MGDCG; 
    6169 
     70/* Types' pointers */ 
     71PyTypeObject py_midgard_query_builder_get_type_object(void); 
     72PyTypeObject py_midgard_collector_get_type_object(void); 
     73 
    6274extern void _py_midgard_connection_singleton_set(MidgardConnection *mgd); 
    6375extern MidgardConnection *_py_midgard_connection_singleton_get(void); 
     
    91103                k++;                                    \ 
    92104        } 
     105 
     106#endif  /* PY_MIDGARD_H */ 
  • trunk/midgard/apis/python/py_midgard_collector.c

    r16508 r16509  
    565565 
    566566} 
     567 
     568PyTypeObject py_midgard_collector_get_type_object(void) 
     569{ 
     570        return Pymidgard_collector_Type; 
     571} 
     572 
  • trunk/midgard/apis/python/py_midgard_query_builder.c

    r16508 r16509  
    358358        pyg_set_object_has_new_constructor(MIDGARD_TYPE_QUERY_BUILDER); 
    359359} 
     360 
     361PyTypeObject py_midgard_query_builder_get_type_object(void) 
     362{ 
     363        return Pymidgard_qb_Type;        
     364}