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
ffc6586b
Commit
ffc6586b
authored
Nov 10, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move VLC object internals to a more private header
parent
4b453a7a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
42 deletions
+40
-42
src/libvlc.c
src/libvlc.c
+1
-1
src/libvlc.h
src/libvlc.h
+0
-31
src/misc/variables.c
src/misc/variables.c
+6
-8
src/misc/variables.h
src/misc/variables.h
+33
-2
No files found.
src/libvlc.c
View file @
ffc6586b
...
@@ -70,8 +70,8 @@
...
@@ -70,8 +70,8 @@
#include <vlc_modules.h>
#include <vlc_modules.h>
#include "libvlc.h"
#include "libvlc.h"
#include "playlist/playlist_internal.h"
#include "playlist/playlist_internal.h"
#include "misc/variables.h"
#include <vlc_vlm.h>
#include <vlc_vlm.h>
...
...
src/libvlc.h
View file @
ffc6586b
...
@@ -124,43 +124,12 @@ void vlc_object_set_destructor (vlc_object_t *, vlc_destructor_t);
...
@@ -124,43 +124,12 @@ void vlc_object_set_destructor (vlc_object_t *, vlc_destructor_t);
*/
*/
module_t
*
module_find_by_shortcut
(
const
char
*
psz_shortcut
);
module_t
*
module_find_by_shortcut
(
const
char
*
psz_shortcut
);
/**
* Private LibVLC data for each object.
*/
typedef
struct
vlc_object_internals
vlc_object_internals_t
;
struct
vlc_object_internals
{
char
*
psz_name
;
/* given name */
/* Object variables */
void
*
var_root
;
vlc_mutex_t
var_lock
;
vlc_cond_t
var_wait
;
/* Objects thread synchronization */
int
pipes
[
2
];
/* Objects management */
vlc_spinlock_t
ref_spin
;
unsigned
i_refcount
;
vlc_destructor_t
pf_destructor
;
/* Objects tree structure */
vlc_object_internals_t
*
next
;
/* next sibling */
vlc_object_internals_t
*
prev
;
/* previous sibling */
vlc_object_internals_t
*
first
;
/* first child */
};
#define ZOOM_SECTION N_("Zoom")
#define ZOOM_SECTION N_("Zoom")
#define ZOOM_QUARTER_KEY_TEXT N_("1:4 Quarter")
#define ZOOM_QUARTER_KEY_TEXT N_("1:4 Quarter")
#define ZOOM_HALF_KEY_TEXT N_("1:2 Half")
#define ZOOM_HALF_KEY_TEXT N_("1:2 Half")
#define ZOOM_ORIGINAL_KEY_TEXT N_("1:1 Original")
#define ZOOM_ORIGINAL_KEY_TEXT N_("1:1 Original")
#define ZOOM_DOUBLE_KEY_TEXT N_("2:1 Double")
#define ZOOM_DOUBLE_KEY_TEXT N_("2:1 Double")
#define vlc_internals( obj ) (((vlc_object_internals_t*)(VLC_OBJECT(obj)))-1)
#define vlc_externals( priv ) ((vlc_object_t *)((priv) + 1))
typedef
struct
sap_handler_t
sap_handler_t
;
typedef
struct
sap_handler_t
sap_handler_t
;
/**
/**
...
...
src/misc/variables.c
View file @
ffc6586b
...
@@ -28,17 +28,9 @@
...
@@ -28,17 +28,9 @@
# include "config.h"
# include "config.h"
#endif
#endif
#include <vlc_common.h>
#include <vlc_charset.h>
#include "variables.h"
#ifdef HAVE_SEARCH_H
#ifdef HAVE_SEARCH_H
# include <search.h>
# include <search.h>
#endif
#endif
#include "libvlc.h"
#include "config/configuration.h"
#include <assert.h>
#include <assert.h>
#include <math.h>
#include <math.h>
#include <limits.h>
#include <limits.h>
...
@@ -46,6 +38,12 @@
...
@@ -46,6 +38,12 @@
# include <dlfcn.h>
# include <dlfcn.h>
#endif
#endif
#include <vlc_common.h>
#include <vlc_charset.h>
#include "libvlc.h"
#include "variables.h"
#include "config/configuration.h"
/*****************************************************************************
/*****************************************************************************
* Private types
* Private types
*****************************************************************************/
*****************************************************************************/
...
...
src/misc/variables.h
View file @
ffc6586b
/*****************************************************************************
/*****************************************************************************
* variables.h: object variables typedefs
* variables.h: object variables typedefs
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-2006 VLC authors and VideoLAN
* Copyright (C) 1999-2012 VLC authors and VideoLAN
* $Id$
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -24,6 +23,38 @@
...
@@ -24,6 +23,38 @@
#ifndef LIBVLC_VARIABLES_H
#ifndef LIBVLC_VARIABLES_H
# define LIBVLC_VARIABLES_H 1
# define LIBVLC_VARIABLES_H 1
/**
* Private LibVLC data for each object.
*/
typedef
struct
vlc_object_internals
vlc_object_internals_t
;
struct
vlc_object_internals
{
char
*
psz_name
;
/* given name */
/* Object variables */
void
*
var_root
;
vlc_mutex_t
var_lock
;
vlc_cond_t
var_wait
;
/* Objects thread synchronization */
int
pipes
[
2
];
/* Objects management */
vlc_spinlock_t
ref_spin
;
unsigned
i_refcount
;
vlc_destructor_t
pf_destructor
;
/* Objects tree structure */
vlc_object_internals_t
*
next
;
/* next sibling */
vlc_object_internals_t
*
prev
;
/* previous sibling */
vlc_object_internals_t
*
first
;
/* first child */
};
# define vlc_internals( obj ) (((vlc_object_internals_t*)(VLC_OBJECT(obj)))-1)
# define vlc_externals( priv ) ((vlc_object_t *)((priv) + 1))
typedef
struct
callback_entry_t
callback_entry_t
;
typedef
struct
callback_entry_t
callback_entry_t
;
typedef
struct
variable_ops_t
typedef
struct
variable_ops_t
...
...
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