summaryrefslogtreecommitdiff
path: root/libvxi11client/libvxi11client.h
diff options
context:
space:
mode:
authordaniel <danieruru@gmail.com>2013-01-17 18:01:30 +0900
committerdaniel <danieruru@gmail.com>2013-01-17 18:01:30 +0900
commit74d4fb6c3b452599e9fc40c2f7df683bb1cf16d6 (patch)
treefacd2a62c7b420332cc4c855b3a4e26034827c67 /libvxi11client/libvxi11client.h
parent44fa490c0a2bf5f85f914ed48c85db0d51afa875 (diff)
make module perlish (object methods)
Diffstat (limited to 'libvxi11client/libvxi11client.h')
-rw-r--r--libvxi11client/libvxi11client.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/libvxi11client/libvxi11client.h b/libvxi11client/libvxi11client.h
index 27da46c..4620abe 100644
--- a/libvxi11client/libvxi11client.h
+++ b/libvxi11client/libvxi11client.h
@@ -22,23 +22,23 @@ typedef struct {
Device_Link devicelink;
bool interruptchannelopen;
bool interruptsenabled;
-} Context;
+} VXI11Context;
-int vxi11_open(Context* context, char* address, char* device);
-int vxi11_abort(Context* context);
-int vxi11_trigger(Context* context, bool waitforlock);
-int vxi11_clear(Context* context, bool waitforlock);
-int vxi11_write(Context* context, char* data, unsigned int len, bool waitlock, bool end);
-int vxi11_read(Context* context, char* buffer, unsigned int bufferlen, bool waitlock, bool termchrset, char termchr);
-int vxi11_lock(Context* context, bool waitforlock);
-int vxi11_unlock(Context* context);
-int vxi11_local(Context* context, bool waitforlock);
-int vxi11_remote(Context* context, bool waitforlock);
-int vxi11_readstatusbyte(Context* context, bool waitforlock);
-int vxi11_create_intr_chan(Context* context);
-int vxi11_destroy_intr_chan(Context* context);
-int vxi11_enable_srq(Context* context, bool enable, char* handle);
+int vxi11_open(VXI11Context* context, char* address, char* device);
+int vxi11_abort(VXI11Context* context);
+int vxi11_trigger(VXI11Context* context, bool waitforlock);
+int vxi11_clear(VXI11Context* context, bool waitforlock);
+int vxi11_write(VXI11Context* context, char* data, unsigned int len, bool waitlock, bool end);
+int vxi11_read(VXI11Context* context, char* buffer, unsigned int bufferlen, bool waitlock, bool termchrset, char termchr);
+int vxi11_lock(VXI11Context* context, bool waitforlock);
+int vxi11_unlock(VXI11Context* context);
+int vxi11_local(VXI11Context* context, bool waitforlock);
+int vxi11_remote(VXI11Context* context, bool waitforlock);
+int vxi11_readstatusbyte(VXI11Context* context, bool waitforlock);
+int vxi11_create_intr_chan(VXI11Context* context);
+int vxi11_destroy_intr_chan(VXI11Context* context);
+int vxi11_enable_srq(VXI11Context* context, bool enable, char* handle);
int vxi11_start_interrupt_server(void (*callback)(char* handle));
int vxi11_stop_interrupt_server();
-int vxi11_docmd(Context* context, unsigned long cmd, bool waitforlock);
-int vxi11_close(Context* context);
+int vxi11_docmd(VXI11Context* context, unsigned long cmd, bool waitforlock);
+int vxi11_close(VXI11Context* context);