1
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
3
* Copyright (C) 2009,2010 Alexander Sack <asac@jwsdot.com>
5
* This file is part of:
6
* ntrack - Network Status Tracking for Desktop Applications
7
* http://launchpad.net/ntrack
9
* ntrack is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU Lesser General Public License as
11
* published by the Free Software Foundation, either version 3 of
12
* the License, or (at your option) any later version.
14
* ntrack is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU Lesser General Public License for more details.
19
* You should have received a copy of the GNU Lesser General Public License
20
* along with ntrack. If not, see <http://www.gnu.org/licenses/>.
22
#include "ntrackmonitor.h"
24
#ifndef __NTRACK_ARCH_API_H__
25
#define __NTRACK_ARCH_API_H__
29
struct _ntrack_monitor
32
struct _listener_pack **packs;
37
struct _ntrack_monitor_arch
39
ntrack_monitor_t parent;
43
ntrack_monitor_callback_f cb;
44
ntrackpointer cb_user_data;
48
_ntrack_arch_new (ntrack_monitor_callback_f callback, ntrackpointer user_data);
51
_ntrack_arch_get_rfds (ntrack_monitor_t *self);
54
_ntrack_arch_process_data (ntrackpointer self, int* fds);
57
_ntrack_arch_free (ntrackpointer self);