~ubuntu-branches/ubuntu/quantal/zaptel/quantal

« back to all changes in this revision

Viewing changes to xpp/xbus-core.h

  • Committer: Bazaar Package Importer
  • Author(s): Tzafrir Cohen
  • Date: 2008-08-28 22:58:23 UTC
  • mfrom: (11.1.11 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080828225823-r8bdunirm8hmc76m
Tags: 1:1.4.11~dfsg-2
* Patch xpp_fxs_power: Fixed an issue with hook detection of the Astribank
  FXS module.
* Don't fail init.d script if fxotune fails. This may happen if running it
  when Asterisk is already running.
* Bump standards version to 3.8.0.0 .
* Ignore false lintian warning ("m-a a-i" has "a a").
* Patch xpp_fxo_cid_always: do always pass PCM if that's what the user
  asked.
* Patch vzaphfc_proc_root_dir: fix vzaphfc on 2.6.26.
* Patch wcte12xp_flags: Proper time for irq save flags.
* Patch headers_2627: Fix location of semaphore.h for 2.6.27 .
* Patch xpp_fxs_dtmf_leak: Don't play DTMFs to the wrong channel.
* Patch wctdm_fix_alarm: Fix sending channel alarms.
* Patch device_class_2626: Fix building 2.6.26 (Closes: #493397).
* Using dh_lintian for lintian overrides, hence requiring debhelper 6.0.7.
* Lintian: we know we have direct changes. Too bad we're half-upstream :-(
* Fix doc-base section names. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Written by Oron Peled <oron@actcom.co.il>
3
 
 * Copyright (C) 2004-2006, Xorcom
4
 
 *
5
 
 * All rights reserved.
6
 
 *
7
 
 * This program is free software; you can redistribute it and/or modify
8
 
 * it under the terms of the GNU General Public License as published by
9
 
 * the Free Software Foundation; either version 2 of the License, or
10
 
 * (at your option) any later version.
11
 
 *
12
 
 * This program is distributed in the hope that it will be useful,
13
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
 * GNU General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU General Public License
18
 
 * along with this program; if not, write to the Free Software
19
 
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
 
 *
21
 
 */
22
 
#ifndef XBUS_CORE_H
23
 
#define XBUS_CORE_H
24
 
 
25
 
#include "xpd.h"
26
 
 
27
 
#define MAX_BUSES               16
28
 
 
29
 
int xbus_core_init(void);               /* Initializer */
30
 
void xbus_core_shutdown(void);          /* Terminator */
31
 
 
32
 
/* Packet handling */
33
 
xpacket_t *xbus_packet_new(xbus_t *xbus, gfp_t flags);
34
 
void xbus_packet_free(xbus_t *xbus, xpacket_t *p);
35
 
 
36
 
/* packet queues */
37
 
void init_xbus_packet_queue(packet_queue_t *q, const char name[]);
38
 
void drain_xbus_packet_queue(xbus_t *xbus, packet_queue_t *q);
39
 
void xbus_enqueue_packet(xbus_t *xbus, packet_queue_t *q, xpacket_t *pack);
40
 
xpacket_t *xbus_dequeue_packet(packet_queue_t *q);
41
 
 
42
 
/* XBUS handling */
43
 
xbus_t  *xbus_of(int xbus_num);
44
 
xpd_t   *xpd_of(xbus_t *xbus, int xpd_num);
45
 
xbus_t  *xbus_new(xbus_ops_t *ops);
46
 
void xbus_remove(xbus_t *xbus);
47
 
void xbus_activate(xbus_t *xbus);
48
 
void xbus_disconnect(xbus_t *xbus);
49
 
 
50
 
void xbus_reset_counters(xbus_t *xbus);
51
 
 
52
 
int xbus_register_xpd(xbus_t *xbus, xpd_t *xpd);
53
 
int xbus_unregister_xpd(xbus_t *xbus, xpd_t *xpd);
54
 
 
55
 
#endif  /* XBUS_CORE_H */
56