~ubuntu-branches/ubuntu/maverick/blender/maverick

« back to all changes in this revision

Viewing changes to source/blender/python/api2_2x/constant.c

  • Committer: Bazaar Package Importer
  • Author(s): Khashayar Naderehvandi, Khashayar Naderehvandi, Alessio Treglia
  • Date: 2009-01-22 16:53:59 UTC
  • mfrom: (14.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090122165359-v0996tn7fbit64ni
Tags: 2.48a+dfsg-1ubuntu1
[ Khashayar Naderehvandi ]
* Merge from debian experimental (LP: #320045), Ubuntu remaining changes:
  - Add patch correcting header file locations.
  - Add libvorbis-dev and libgsm1-dev to Build-Depends.
  - Use avcodec_decode_audio2() in source/blender/src/hddaudio.c

[ Alessio Treglia ]
* Add missing previous changelog entries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* 
2
 
 * $Id: constant.c 14444 2008-04-16 22:40:48Z hos $
 
2
 * $Id: constant.c 16827 2008-09-29 17:08:11Z campbellbarton $
3
3
 *
4
4
 * ***** BEGIN GPL LICENSE BLOCK *****
5
5
 *
37
37
//------------------METHOD IMPLEMENTATIONS-----------------------------
38
38
//------------------------constant.items()
39
39
//Returns a list of key:value pairs like dict.items()
40
 
PyObject* constant_items(BPy_constant *self)
 
40
static PyObject* constant_items(BPy_constant *self)
41
41
{
42
42
        return PyDict_Items(self->dict);
43
43
}
44
44
//------------------------constant.keys()
45
45
//Returns a list of keys like dict.keys()
46
 
PyObject* constant_keys(BPy_constant *self)
 
46
static PyObject* constant_keys(BPy_constant *self)
47
47
{
48
48
        return PyDict_Keys(self->dict);
49
49
}
50
50
//------------------------constant.values()
51
51
//Returns a list of values like dict.values()
52
 
PyObject* constant_values(BPy_constant *self)
 
52
static PyObject* constant_values(BPy_constant *self)
53
53
{
54
54
        return PyDict_Values(self->dict);
55
55
}