]> git.sesse.net Git - vlc/blobdiff - include/netutils.h
* ALL: got rid of p_object->p_this which is now useless.
[vlc] / include / netutils.h
index 0302af1cef3682a5abcce392669f90b715173bbf..7c88dddfdea9e55b4e0743c1ab8de644e62ffca0 100644 (file)
@@ -4,7 +4,7 @@
  * modules.
  *****************************************************************************
  * Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: netutils.h,v 1.20 2002/06/01 12:31:57 sam Exp $
+ * $Id: netutils.h,v 1.21 2002/06/01 18:04:48 sam Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Henri Fallon <henri@videolan.org>
@@ -33,6 +33,8 @@
 struct sockaddr_in;
 int   network_BuildAddr       ( struct sockaddr_in *, char *, int ); 
 
-VLC_EXPORT( int,   network_ChannelJoin,     ( vlc_object_t *, int ) );
-VLC_EXPORT( int,   network_ChannelCreate,   ( vlc_object_t * ) );
+#define network_ChannelJoin(a,b) __network_ChannelJoin(CAST_TO_VLC_OBJECT(a),b)
+#define network_ChannelCreate(a) __network_ChannelCreate(CAST_TO_VLC_OBJECT(a))
+VLC_EXPORT( int, __network_ChannelJoin,     ( vlc_object_t *, int ) );
+VLC_EXPORT( int, __network_ChannelCreate,   ( vlc_object_t * ) );