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

« back to all changes in this revision

Viewing changes to debian/patches/proc_read

  • 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
# Adds an extra Zaptel span method: proc_read. 
 
2
# This allows a span to add some arbitrary text at the end 
 
3
# of the /proc/zaptel/NNN file.
 
4
#
 
5
# This is currently only used by cwain.
 
6
#
 
7
# My personal opinion is that such methods are not recommended.
 
8
# sysfs support should be used instead (Tzafrir). It is likely to break 
 
9
# zapconf and genzaptelconf for drivers using it.
 
10
 
 
11
Index: zaptel-1.2.22/kernel/zaptel.h
 
12
===================================================================
 
13
--- zaptel-1.2.22.orig/kernel/zaptel.h  2007-12-04 10:40:30.000000000 +0100
 
14
+++ zaptel-1.2.22/kernel/zaptel.h       2007-12-04 14:35:14.545043151 +0100
 
15
@@ -1394,6 +1405,10 @@
 
16
        int watchcounter;
 
17
        int watchstate;
 
18
 #endif 
 
19
+#ifdef CONFIG_PROC_FS
 
20
+       /* Allow subordinate drivers to print out their own stuff */
 
21
+       int (*proc_read)(struct zt_span *span, char *start);
 
22
+#endif
 
23
 };
 
24
 
 
25
 struct zt_transcoder_channel {
 
26
Index: zaptel-1.2.22/kernel/zaptel-base.c
 
27
===================================================================
 
28
--- zaptel-1.2.22.orig/kernel/zaptel-base.c     2007-12-04 10:40:31.000000000 +0100
 
29
+++ zaptel-1.2.22/kernel/zaptel-base.c  2007-12-04 14:35:14.553042850 +0100
 
30
@@ -584,6 +585,10 @@
 
31
                len += sprintf(page + len, "\tIRQ misses: %d\n", spans[span]->irqmisses);
 
32
        len += sprintf(page + len, "\n");
 
33
 
 
34
+       if (spans[span]->proc_read) {
 
35
+               len += spans[span]->proc_read(spans[span], page + len);
 
36
+       }
 
37
+
 
38
 
 
39
         for (x=1;x<ZT_MAX_CHANNELS;x++) {      
 
40
                if (chans[x]) {