Commit c2c113e3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

core: remove unused SQL support

parent 628b01be
This diff is collapsed.
...@@ -76,7 +76,6 @@ pluginsinclude_HEADERS = \ ...@@ -76,7 +76,6 @@ pluginsinclude_HEADERS = \
../include/vlc_probe.h \ ../include/vlc_probe.h \
../include/vlc_rand.h \ ../include/vlc_rand.h \
../include/vlc_services_discovery.h \ ../include/vlc_services_discovery.h \
../include/vlc_sql.h \
../include/vlc_sout.h \ ../include/vlc_sout.h \
../include/vlc_spu.h \ ../include/vlc_spu.h \
../include/vlc_stream.h \ ../include/vlc_stream.h \
...@@ -466,7 +465,6 @@ SOURCES_libvlc_common = \ ...@@ -466,7 +465,6 @@ SOURCES_libvlc_common = \
misc/filter.c \ misc/filter.c \
misc/filter_chain.c \ misc/filter_chain.c \
misc/http_auth.c \ misc/http_auth.c \
misc/sql.c \
misc/text_style.c \ misc/text_style.c \
misc/subpicture.c \ misc/subpicture.c \
misc/subpicture.h \ misc/subpicture.h \
......
...@@ -378,8 +378,6 @@ spu_ChangeFilters ...@@ -378,8 +378,6 @@ spu_ChangeFilters
spu_Render spu_Render
spu_RegisterChannel spu_RegisterChannel
spu_ClearChannel spu_ClearChannel
sql_Create
sql_Destroy
stream_Block stream_Block
stream_BlockRemaining stream_BlockRemaining
stream_Control stream_Control
......
/*****************************************************************************
* sql.c: SQL Connection: Creators and destructors
*****************************************************************************
* Copyright (C) 2008-2009 VLC authors and VideoLAN
* $Id$
*
* Authors: Srikanth Raju <srikiraju at gmail dot com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <vlc_common.h>
#include <vlc_sql.h>
#include <vlc_modules.h>
#include <assert.h>
#include "libvlc.h"
#undef sql_Create
sql_t *sql_Create( vlc_object_t *p_this, const char *psz_name,
const char* psz_host, int i_port,
const char* psz_user, const char* psz_pass )
{
sql_t *p_sql;
p_sql = ( sql_t * ) vlc_custom_create( p_this, sizeof( sql_t ), "sql" );
if( !p_sql )
{
msg_Err( p_this, "unable to create sql object" );
return NULL;
}
p_sql->psz_host = strdup( psz_host );
p_sql->psz_user = strdup( psz_user );
p_sql->psz_pass = strdup( psz_pass );
p_sql->i_port = i_port;
p_sql->p_module = module_need( p_sql, "sql", psz_name,
psz_name && *psz_name );
if( !p_sql->p_module )
{
free( p_sql->psz_host );
free( p_sql->psz_user );
free( p_sql->psz_pass );
vlc_object_release( p_sql );
msg_Err( p_this, "SQL provider not found" );
return NULL;
}
return p_sql;
}
#undef sql_Destroy
void sql_Destroy( vlc_object_t* obj )
{
sql_t *p_sql = (sql_t *)obj;
assert( p_sql );
free( p_sql->psz_host );
free( p_sql->psz_user );
free( p_sql->psz_pass );
module_unneed( p_sql, p_sql->p_module );
vlc_object_release( obj );
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment