Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
c2c113e3
Commit
c2c113e3
authored
Mar 24, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: remove unused SQL support
parent
628b01be
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
661 deletions
+0
-661
include/vlc_sql.h
include/vlc_sql.h
+0
-576
src/Makefile.am
src/Makefile.am
+0
-2
src/libvlccore.sym
src/libvlccore.sym
+0
-2
src/misc/sql.c
src/misc/sql.c
+0
-81
No files found.
include/vlc_sql.h
deleted
100644 → 0
View file @
628b01be
This diff is collapsed.
Click to expand it.
src/Makefile.am
View file @
c2c113e3
...
...
@@ -76,7 +76,6 @@ pluginsinclude_HEADERS = \
../include/vlc_probe.h
\
../include/vlc_rand.h
\
../include/vlc_services_discovery.h
\
../include/vlc_sql.h
\
../include/vlc_sout.h
\
../include/vlc_spu.h
\
../include/vlc_stream.h
\
...
...
@@ -466,7 +465,6 @@ SOURCES_libvlc_common = \
misc/filter.c
\
misc/filter_chain.c
\
misc/http_auth.c
\
misc/sql.c
\
misc/text_style.c
\
misc/subpicture.c
\
misc/subpicture.h
\
...
...
src/libvlccore.sym
View file @
c2c113e3
...
...
@@ -378,8 +378,6 @@ spu_ChangeFilters
spu_Render
spu_RegisterChannel
spu_ClearChannel
sql_Create
sql_Destroy
stream_Block
stream_BlockRemaining
stream_Control
...
...
src/misc/sql.c
deleted
100644 → 0
View file @
628b01be
/*****************************************************************************
* 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
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment