summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortilghman <tilghman@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-30 22:47:42 +0000
committertilghman <tilghman@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-30 22:47:42 +0000
commitb376077a481b341925d430811fedc6467150a95d (patch)
tree8153c11bd8409942b1771277445344dd2581ab44
parent48e940fa596dff43826ef278ca2efd23e5ee55f2 (diff)
Add two fields to the spanconfig struct (at the bottom, as suggested by tzafrir), with a define to let modules know that it's there
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2986 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--zaptel-base.c2
-rw-r--r--zaptel.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/zaptel-base.c b/zaptel-base.c
index 84b956b..5434cd3 100644
--- a/zaptel-base.c
+++ b/zaptel-base.c
@@ -3165,6 +3165,8 @@ static int zt_common_ioctl(struct inode *node, struct file *file, unsigned int c
stack.span.irqmisses = spans[i]->irqmisses; /* get IRQ miss count */
stack.span.syncsrc = spans[i]->syncsrc; /* get active sync source */
stack.span.totalchans = spans[i]->channels;
+ stack.span.lbo = spans[i]->lbo;
+ stack.span.lineconfig = spans[i]->lineconfig;
stack.span.numchans = 0;
for (j=0; j < spans[i]->channels; j++)
if (spans[i]->chans[j].sig)
diff --git a/zaptel.h b/zaptel.h
index d0e95f3..24b12fe 100644
--- a/zaptel.h
+++ b/zaptel.h
@@ -177,6 +177,9 @@
#define ZT_GET_PARAMS_RETURN_MASTER 0x40000000
+/* Extended attributes in lineconfig structure */
+#define ZT_SPANINFO_HAS_LINECONFIG
+
typedef struct zt_params
{
int channo; /* Channel number */
@@ -222,6 +225,8 @@ int syncsrc; /* span # of current sync source, or 0 for free run */
int numchans; /* number of configured channels on this span */
int totalchans; /* total number of channels on the span */
int totalspans; /* total number of zaptel spans in entire system */
+int lbo; /* line build out */
+int lineconfig; /* framing/coding */
} ZT_SPANINFO;
typedef struct zt_maintinfo