summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2009-03-11 14:50:58 +0000
committerShaun Ruffell <sruffell@digium.com>2009-03-11 14:50:58 +0000
commit4e85754fc515682783bdaf38b5ac0347b37e5052 (patch)
treeaf5e4d4abe42a201ae90033bdbe509defb5f8d66 /include
parent0f1c9a8ca73fae4f5b29d980cec152e8269bb5a6 (diff)
Fix direction bits on several ioctls.
(related to issue #14499) Reported by: ys git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6124 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/user.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/include/dahdi/user.h b/include/dahdi/user.h
index 7f4cd3b..67375bb 100644
--- a/include/dahdi/user.h
+++ b/include/dahdi/user.h
@@ -478,8 +478,9 @@ struct dahdi_params {
__u32 chan_alarms; /* alarms on this channel */
};
-#define DAHDI_GET_PARAMS _IOR(DAHDI_CODE, 5, struct dahdi_params)
-#define DAHDI_SET_PARAMS _IOW(DAHDI_CODE, 5, struct dahdi_params)
+#define DAHDI_GET_PARAMS_V1 _IOR(DAHDI_CODE, 5, struct dahdi_params)
+#define DAHDI_GET_PARAMS _IOWR(DAHDI_CODE, 5, struct dahdi_params)
+#define DAHDI_SET_PARAMS _IOW(DAHDI_CODE, 5, struct dahdi_params)
/*
* Set Hookswitch Status
@@ -547,8 +548,11 @@ struct dahdi_confinfo {
int confmode; /* conferencing mode */
};
-#define DAHDI_GETCONF _IOR(DAHDI_CODE, 12, struct dahdi_confinfo)
-#define DAHDI_SETCONF _IOW(DAHDI_CODE, 12, struct dahdi_confinfo)
+#define DAHDI_GETCONF_V1 _IOR(DAHDI_CODE, 12, struct dahdi_confinfo)
+#define DAHDI_GETCONF _IOWR(DAHDI_CODE, 12, struct dahdi_confinfo)
+
+#define DAHDI_SETCONF_V1 _IOW(DAHDI_CODE, 12, struct dahdi_confinfo)
+#define DAHDI_SETCONF _IOWR(DAHDI_CODE, 13, struct dahdi_confinfo)
/*
* Setup or Remove Conference Link
@@ -558,7 +562,8 @@ struct dahdi_confinfo {
/*
* Display Conference Diagnostic Information on Console
*/
-#define DAHDI_CONFDIAG _IOR(DAHDI_CODE, 15, int)
+#define DAHDI_CONFDIAG_V1 _IOR(DAHDI_CODE, 15, int)
+#define DAHDI_CONFDIAG _IOW(DAHDI_CODE, 15, int)
/*
* Get/Set Channel audio gains
@@ -569,8 +574,9 @@ struct dahdi_gains {
unsigned char txgain[256]; /* Transmit gain table */
};
-#define DAHDI_GETGAINS _IOR(DAHDI_CODE, 16, struct dahdi_gains)
-#define DAHDI_SETGAINS _IOW(DAHDI_CODE, 16, struct dahdi_gains)
+#define DAHDI_GETGAINS_V1 _IOR(DAHDI_CODE, 16, struct dahdi_gains)
+#define DAHDI_GETGAINS _IOWR(DAHDI_CODE, 16, struct dahdi_gains)
+#define DAHDI_SETGAINS _IOW(DAHDI_CODE, 16, struct dahdi_gains)
/*
* Set Line (T1) Configurations
@@ -810,7 +816,8 @@ struct dahdi_ring_cadence {
/*
* Display Channel Diagnostic Information on Console
*/
-#define DAHDI_CHANDIAG _IOR(DAHDI_CODE, 44, int)
+#define DAHDI_CHANDIAG_V1 _IOR(DAHDI_CODE, 44, int)
+#define DAHDI_CHANDIAG _IOW(DAHDI_CODE, 44, int)
/*
* Set Channel's SF Tone Configuration