1
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
3
* Copyright (C) 2009 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_H__
25
#define __NTRACK_ARCH_H__
29
typedef void (*ntrack_monitor_arch_event_f) (ntrack_monitor_t *self,
31
ntrackpointer user_data);
33
struct _ntrack_monitor
36
struct _listener_pack **packs;
41
struct _ntrack_monitor_arch {
42
ntrack_monitor_t parent;
46
ntrack_monitor_arch_event_f cb;
47
ntrackpointer cb_user_data;
51
_ntrack_arch_new (ntrack_monitor_arch_event_f callback, ntrackpointer user_data);
54
_ntrack_arch_get_rfds (ntrack_monitor_t *self);
57
_ntrack_arch_process_data (ntrackpointer self, int* fds);
61
#endif /* __NTRACK_ARCH_H__ */