* event.cpp: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: event.cpp,v 1.14 2003/05/05 16:09:40 gbazin Exp $
+ * $Id: event.cpp,v 1.15 2003/05/05 16:29:57 gbazin Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
char *para2 = new char[MAX_PARAM_SIZE];
char *para3 = new char[MAX_PARAM_SIZE];
- // Buffer to create strings
- char *buf;
-
// Scan the event
int scan = sscanf( EventDesc.c_str(),
"%[^(](%[^,)],%[^,)],%[^,)])", msg, para1, para2, para3 );
* vlcproc.cpp: VlcProc class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: vlcproc.cpp,v 1.20 2003/05/05 16:09:40 gbazin Exp $
+ * $Id: vlcproc.cpp,v 1.21 2003/05/05 16:29:57 gbazin Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
//---------------------------------------------------------------------------
void VlcProc::AddNetworkUDP( int port )
{
- config_PutInt( p_intf, "network-channel", VLC_FALSE );
-
// Build source name
char *s_port = new char[5];
sprintf( s_port, "%i", port );
InterfaceRefresh();
}
//---------------------------------------------------------------------------
-void VlcProc::AddNetworkChannelServer( char *server )
-{
- char *name = new char[MAX_PARAM_SIZE];
- int port = 0;
-
- // Scan the server address
- int scan = sscanf( server, "%[^:]:%i", name, &port );
-
- if( scan != 2)
- {
- msg_Err( p_intf, "Invalid channel server: %s", server );
- delete[] name;
- return;
- }
-
- config_PutInt( p_intf, "network-channel", VLC_TRUE );
- config_PutPsz( p_intf, "channel-server", name );
- config_PutInt( p_intf, "channel-port", port );
-
- if( p_intf->p_vlc->p_channel == NULL )
- {
- network_ChannelCreate( p_intf );
- }
-
- delete[] name;
-}
-//---------------------------------------------------------------------------
* vlcproc.h: VlcProc class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: vlcproc.h,v 1.4 2003/04/15 20:33:58 karibu Exp $
+ * $Id: vlcproc.h,v 1.5 2003/05/05 16:29:57 gbazin Exp $
*
* Authors: Olivier Teulière <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
void FullScreen();
void ChangeVolume( unsigned int msg, long param );
void AddNetworkUDP( int port );
- void AddNetworkChannelServer( char *server );
void InterfaceRefresh( bool All = false );
void EnabledEvent( string type, bool state );