Back to index

gcompris  8.2.2
Classes | Functions
py-gcompris-profile.h File Reference
#include <Python.h>
#include "gcompris/gcompris.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pyGcomprisProfileObject
struct  pyGcomprisClassObject
struct  pyGcomprisGroupObject
struct  pyGcomprisUserObject

Functions

PyObject * gcompris_new_pyGcomprisProfileObject (GcomprisProfile *profile)
PyObject * gcompris_new_pyGcomprisClassObject (GcomprisClass *class)
PyObject * gcompris_new_pyGcomprisGroupObject (GcomprisGroup *group)
PyObject * gcompris_new_pyGcomprisUserObject (GcomprisUser *user)

Class Documentation

struct pyGcomprisProfileObject

Definition at line 9 of file py-gcompris-profile.h.

Collaboration diagram for pyGcomprisProfileObject:
Class Members
PyObject_HEAD GcomprisProfile * cdata
struct pyGcomprisClassObject

Definition at line 16 of file py-gcompris-profile.h.

Class Members
PyObject_HEAD GcomprisClass * cdata
struct pyGcomprisGroupObject

Definition at line 23 of file py-gcompris-profile.h.

Class Members
PyObject_HEAD GcomprisGroup * cdata
struct pyGcomprisUserObject

Definition at line 31 of file py-gcompris-profile.h.

Class Members
PyObject_HEAD GcomprisUser * cdata

Function Documentation

PyObject* gcompris_new_pyGcomprisClassObject ( GcomprisClass *  class)

Definition at line 13 of file py-gcompris-class.c.

{
  pyGcomprisClassObject* theclass = NULL;

  theclass = PyObject_New(pyGcomprisClassObject, &pyGcomprisClassType);
  if (theclass!=NULL)
    theclass->cdata = class;

  return (PyObject*)theclass;
}

Here is the caller graph for this function:

PyObject* gcompris_new_pyGcomprisGroupObject ( GcomprisGroup *  group)

Definition at line 13 of file py-gcompris-group.c.

{
  pyGcomprisGroupObject* thegroup = NULL;

  thegroup = PyObject_New(pyGcomprisGroupObject, &pyGcomprisGroupType);
  if (thegroup!=NULL)
    thegroup->cdata = group;

  return (PyObject*)thegroup;
}

Here is the caller graph for this function:

Definition at line 13 of file py-gcompris-profile.c.

{
  if (!profile)
    return Py_None;

  pyGcomprisProfileObject* theprofile = NULL;

  theprofile = PyObject_New(pyGcomprisProfileObject, &pyGcomprisProfileType);
  if (theprofile!=NULL)
    theprofile->cdata = profile;

  return (PyObject*)theprofile;
}

Here is the caller graph for this function:

PyObject* gcompris_new_pyGcomprisUserObject ( GcomprisUser *  user)

Definition at line 13 of file py-gcompris-user.c.

{
  pyGcomprisUserObject* theuser = NULL;

  theuser = PyObject_New(pyGcomprisUserObject, &pyGcomprisUserType);
  if (theuser!=NULL)
    theuser->cdata = user;

  return (PyObject*)theuser;
}

Here is the caller graph for this function: