Erik Grinaker is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

erikg / Revelation

Revelation is a password manager for the GNOME desktop, released under the GNU GPL license. It stores all your accounts and passwords in a single, secure place, and gives you access to it through a user-friendly graphical interface.

Clone this repository (size: 2.1 MB): HTTPS / SSH
hg clone https://bitbucket.org/erikg/revelation
hg clone ssh://hg@bitbucket.org/erikg/revelation

Revelation / wrap / authmanager / authmanagermodule.c

#include <Python.h>
#include "pygobject.h"

void authmanager_register_classes (PyObject *d);
extern PyMethodDef authmanager_functions[];

DL_EXPORT(void)
initauthmanager(void)
{
        PyObject *m, *d;

        init_pygobject ();
        m = Py_InitModule ("authmanager", authmanager_functions);
        d = PyModule_GetDict(m);

        authmanager_register_classes (d);

        if (PyErr_Occurred ()) {
                Py_FatalError ("can't initialize module authmanager");
        }
}