Lines Matching refs:PyObject
60 static int py_insert_long(PyObject *dict, const char *name, int value) in py_insert_long()
63 PyObject *obj = PyLong_FromLong(value); in py_insert_long()
70 static int py_insert_bool(PyObject *dict, const char *name, int value) in py_insert_bool()
73 PyObject *obj = PyBool_FromLong(value); in py_insert_bool()
93 static PyObject* get_sens(const char *name, const apol_policy_t * policydb) in get_sens()
95 PyObject *dict = NULL; in get_sens()
236 static PyObject* get_cat_sens(const qpol_cat_t * cat_datum, const apol_policy_t * policydb) in get_cat_sens()
245 PyObject *list = NULL; in get_cat_sens()
246 PyObject *dict = PyDict_New(); in get_cat_sens()
309 static PyObject* get_cats(const char *name, const apol_policy_t * policydb) in get_cats()
311 PyObject *obj = NULL; in get_cats()
318 PyObject *list = PyList_New(0); in get_cats()
366 static PyObject* get_type_aliases(const qpol_type_t * type_datum, const apol_policy_t * policydb) in get_type_aliases()
375 PyObject *list = PyList_New(0); in get_type_aliases()
417 static PyObject* get_attr(const qpol_type_t * type_datum, const apol_policy_t * policydb) in get_attr()
419 PyObject *list = NULL; in get_attr()
427 PyObject *dict = PyDict_New(); in get_attr()
487 static PyObject* get_attribs(const char *name, const apol_policy_t * policydb) in get_attribs()
489 PyObject *obj; in get_attribs()
496 PyObject *list = PyList_New(0); in get_attribs()
562 static PyObject* get_type_attrs(const qpol_type_t * type_datum, const apol_policy_t * policydb) in get_type_attrs()
569 PyObject *list = PyList_New(0); in get_type_attrs()
596 static PyObject* get_type(const qpol_type_t * type_datum, const apol_policy_t * policydb) { in get_type()
598 PyObject *obj; in get_type()
604 PyObject *dict = PyDict_New(); in get_type()
657 static PyObject* get_booleans(const char *name, const apol_policy_t * policydb) in get_booleans()
659 PyObject *dict = NULL; in get_booleans()
668 PyObject *list = PyList_New(0); in get_booleans()
733 static PyObject* get_user(const qpol_user_t * user_datum, const apol_policy_t * policydb) in get_user()
746 PyObject *dict = NULL; in get_user()
747 PyObject *list = PyList_New(0); in get_user()
817 static PyObject* get_class(const qpol_class_t * class_datum, const apol_policy_t * policydb) in get_class()
825 PyObject *list = NULL; in get_class()
826 PyObject *dict = PyDict_New(); in get_class()
895 static PyObject* get_classes(const char *name, const apol_policy_t * policydb) in get_classes()
903 PyObject *obj; in get_classes()
904 PyObject *list = PyList_New(0); in get_classes()
955 static PyObject* get_users(const char *name, const apol_policy_t * policydb) in get_users()
962 PyObject *obj; in get_users()
963 PyObject *list = PyList_New(0); in get_users()
1010 static PyObject* get_role(const qpol_role_t * role_datum, const apol_policy_t * policydb) in get_role()
1020 PyObject *list = NULL; in get_role()
1021 PyObject *dict = PyDict_New(); in get_role()
1095 static PyObject* get_ports(const char *num, const apol_policy_t * policydb) in get_ports()
1110 PyObject *dict = NULL; in get_ports()
1111 PyObject *list = PyList_New(0); in get_ports()
1209 static PyObject* get_roles(const char *name, const apol_policy_t * policydb) in get_roles()
1216 PyObject *obj; in get_roles()
1217 PyObject *list = PyList_New(0); in get_roles()
1268 static PyObject* get_types(const char *name, const apol_policy_t * policydb) in get_types()
1275 PyObject *obj; in get_types()
1276 PyObject *list = PyList_New(0); in get_types()
1314 PyObject* info( int type, const char *name) in info()
1316 PyObject* output = NULL; in info()
1356 PyObject *wrap_info(PyObject *UNUSED(self), PyObject *args){ in wrap_info()
1371 void init_info (PyObject *m) { in init_info()