summaryrefslogtreecommitdiff
path: root/src/ivychannel.h
diff options
context:
space:
mode:
authorfcolin2006-04-21 15:51:55 +0000
committerfcolin2006-04-21 15:51:55 +0000
commit2cf893c0c34d50a68a27e1704b38f2facc10c9bc (patch)
tree600b8833d8498803c350e47d8a0ce26185604e2d /src/ivychannel.h
parent8b42932b4ec978040acf341e69cd7b037721b24f (diff)
downloadivy-c-2cf893c0c34d50a68a27e1704b38f2facc10c9bc.zip
ivy-c-2cf893c0c34d50a68a27e1704b38f2facc10c9bc.tar.gz
ivy-c-2cf893c0c34d50a68a27e1704b38f2facc10c9bc.tar.bz2
ivy-c-2cf893c0c34d50a68a27e1704b38f2facc10c9bc.tar.xz
suppression de l'indirection sur les fonction channel et renomage !
Diffstat (limited to 'src/ivychannel.h')
-rw-r--r--src/ivychannel.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/ivychannel.h b/src/ivychannel.h
index fa498b4..31a17aa 100644
--- a/src/ivychannel.h
+++ b/src/ivychannel.h
@@ -37,22 +37,19 @@ typedef void (*ChannelHandleDelete)( void *data );
typedef void (*ChannelHandleRead)( Channel channel, HANDLE fd, void *data);
/* fonction appele par le bus pour initialisation */
-typedef void (*ChannelInit)(void);
+extern void IvyChannelInit(void);
/* fonction appele par le bus pour mise en place des callback sur le canal */
-typedef Channel (*ChannelSetUp)(
+extern Channel IvyChannelAdd(
HANDLE fd,
void *data,
ChannelHandleDelete handle_delete,
ChannelHandleRead handle_read
);
-/* fonction appele par le bus pour fermeture du canal */
-typedef void (*ChannelClose)( Channel channel );
+/* fonction appele par le bus pour suppression des callback sur le canal */
+extern void IvyChannelRemove( Channel channel );
-extern ChannelInit channel_init;
-extern ChannelClose channel_close;
-extern ChannelSetUp channel_setup;
#ifdef __cplusplus
}