File: _fam.h

package info (click to toggle)
python-fam 1.1.1-2.2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 112 kB
  • ctags: 119
  • sloc: ansic: 707; python: 270; makefile: 43
file content (69 lines) | stat: -rw-r--r-- 3,192 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
 * This file is part of Python FAM.
 * Copyright (C) 2002 Robert Sander <robert.sander@epigenomics.com>
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 *
 * $Id: _fam.h,v 1.7 2005/04/10 07:48:45 loewis Exp $
 *
 */

#include <Python.h>
#include <fam.h>

static char _fam_connection_type__doc__[] = "FAMConnection";
static PyTypeObject _fam_connection_type;

static char _fam_request_type__doc__[] = "FAMRequest";
static PyTypeObject _fam_request_type;

static char _fam_event_type__doc__[] = "FAMEvent";
static PyTypeObject _fam_event_type;

static char _fam_open__doc__[] = "opens a new connection to the fam daemon, returning a FAMConnection object";
static PyObject* _fam_open(PyObject* self, PyObject* args);

static char _fam_close__doc__[] = "closes the connection to the fam daemon";
static PyObject* _fam_close(PyObject* self, PyObject* args);

static char _fam_monitor_directory__doc__[] = "monitors a directory, returning a FAMRequest object\nfirst argument is the full directory name, second an arbitrary object for later use";
static PyObject* _fam_monitor_directory(PyObject* self, PyObject* args);

static char _fam_monitor_file__doc__[] = "monitors a file, returning a FAMRequest object\nfirst argument is the full filename, second an arbitrary object for later use";
static PyObject* _fam_monitor_file(PyObject* self, PyObject* args);

static char _fam_suspend_monitor__doc__[] = "suspends the request";
static PyObject* _fam_suspend_monitor(PyObject* self, PyObject* args);

static char _fam_resume_monitor__doc__[] = "resumes the requests";
static PyObject* _fam_resume_monitor(PyObject* self, PyObject* args);

static char _fam_cancel_monitor__doc__[] = "cancels the request";
static PyObject* _fam_cancel_monitor(PyObject* self, PyObject* args);

static char _fam_next_event__doc__[] = "returns the next FAMEvent object from the queue";
static PyObject* _fam_next_event(PyObject* self, PyObject* args);

static char _fam_pending__doc__[] = "returns 1 if an event is pending, None if not";
static PyObject* _fam_pending(PyObject* self, PyObject* args);

static char _fam_code2str__doc__[] = "converts event code to meaningful string";
static PyObject* _fam_code2str(PyObject* self, PyObject* args);

static char _fam_fileno__doc__[] = "returns the file descriptor of the connection";
static PyObject* _fam_fileno(PyObject* self, PyObject* args);

static char _fam_request_id__doc__[] = "returns the request id";
static PyObject* _fam_request_id(PyObject* self, PyObject* args);