~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/python/intern/bpy_rna.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
#endif /* !USE_PYRNA_STRUCT_REFERENCE */
116
116
 
117
117
#ifdef PYRNA_FREE_SUPPORT
118
 
        int freeptr; /* needed in some cases if ptr.data is created on the fly, free when deallocing */
 
118
        bool freeptr;  /* needed in some cases if ptr.data is created on the fly, free when deallocing */
119
119
#endif /* PYRNA_FREE_SUPPORT */
120
120
} BPy_StructRNA;
121
121
 
164
164
#define BPy_BaseTypeRNA BPy_PropertyRNA
165
165
 
166
166
StructRNA *srna_from_self(PyObject *self, const char *error_prefix);
167
 
StructRNA *pyrna_struct_as_srna(PyObject *self, int parent, const char *error_prefix);
 
167
StructRNA *pyrna_struct_as_srna(PyObject *self, const bool parent, const char *error_prefix);
168
168
 
169
169
void      BPY_rna_init(void);
170
170
PyObject *BPY_rna_module(void);
171
171
void      BPY_update_rna_module(void);
172
172
/*PyObject *BPY_rna_doc(void);*/
173
173
PyObject *BPY_rna_types(void);
 
174
void      BPY_rna_register_cb(void);
174
175
 
175
176
PyObject *pyrna_struct_CreatePyObject(PointerRNA *ptr);
176
177
PyObject *pyrna_prop_CreatePyObject(PointerRNA *ptr, PropertyRNA *prop);
177
178
 
 
179
/* extern'd by other modules which don't deal closely with RNA */
 
180
PyObject *pyrna_id_CreatePyObject(struct ID *id);
 
181
bool      pyrna_id_FromPyObject(PyObject *obj, struct ID **id);
 
182
 
178
183
/* operators also need this to set args */
179
184
int pyrna_pydict_to_props(PointerRNA *ptr, PyObject *kw, int all_args, const char *error_prefix);
180
185
PyObject *pyrna_prop_to_py(PointerRNA *ptr, PropertyRNA *prop);
200
205
PyObject *pyrna_math_object_from_array(PointerRNA *ptr, PropertyRNA *prop);
201
206
int pyrna_array_contains_py(PointerRNA *ptr, PropertyRNA *prop, PyObject *value);
202
207
 
203
 
int pyrna_write_check(void);
204
 
void pyrna_write_set(int val);
 
208
bool pyrna_write_check(void);
 
209
void pyrna_write_set(bool val);
205
210
 
 
211
void pyrna_invalidate(BPy_DummyPointerRNA *self);
206
212
int pyrna_struct_validity_check(BPy_StructRNA *pysrna);
207
213
int pyrna_prop_validity_check(BPy_PropertyRNA *self);
208
214