~ubuntu-branches/ubuntu/saucy/blender/saucy-proposed

« back to all changes in this revision

Viewing changes to source/blender/python/intern/bpy_util.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:
24
24
 *  \ingroup pythonintern
25
25
 */
26
26
 
27
 
 
28
27
#ifndef __BPY_UTIL_H__
29
28
#define __BPY_UTIL_H__
30
29
 
31
 
#if PY_VERSION_HEX <  0x03020000
32
 
#error "Python 3.2 or greater is required, you'll need to update your python."
 
30
#if PY_VERSION_HEX <  0x03030000
 
31
#  error "Python 3.3 or greater is required, you'll need to update your python."
33
32
#endif
34
33
 
35
 
#include "RNA_types.h" /* for EnumPropertyItem only */
36
 
 
37
34
struct EnumPropertyItem;
38
35
struct ReportList;
39
36
 
42
39
#define BLANK_PYTHON_TYPE {PyVarObject_HEAD_INIT(NULL, 0) NULL}
43
40
 
44
41
/* error reporting */
45
 
short BPy_reports_to_error(struct ReportList *reports, PyObject *exception, const short clear);
 
42
short BPy_reports_to_error(struct ReportList *reports, PyObject *exception, const bool clear);
46
43
short BPy_errors_to_report(struct ReportList *reports);
47
44
 
48
45
/* TODO - find a better solution! */
49
46
struct bContext *BPy_GetContext(void);
50
47
void BPy_SetContext(struct bContext *C);
51
48
 
52
 
extern void bpy_context_update(struct bContext *C);
53
49
extern void bpy_context_set(struct bContext *C, PyGILState_STATE *gilstate);
54
50
extern void bpy_context_clear(struct bContext *C, PyGILState_STATE *gilstate);
55
 
#endif
 
51
 
 
52
#endif  /* __BPY_UTIL_H__ */