Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
bae1e6a0
Commit
bae1e6a0
authored
Jul 06, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua: refactor
parent
2ca95bb1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
modules/lua/libs/net.c
modules/lua/libs/net.c
+7
-2
modules/lua/vlc.h
modules/lua/vlc.h
+1
-0
No files found.
modules/lua/libs/net.c
View file @
bae1e6a0
...
@@ -53,6 +53,12 @@ static vlclua_dtable_t *vlclua_get_dtable( lua_State *L )
...
@@ -53,6 +53,12 @@ static vlclua_dtable_t *vlclua_get_dtable( lua_State *L )
return
vlclua_get_object
(
L
,
vlclua_get_dtable
);
return
vlclua_get_object
(
L
,
vlclua_get_dtable
);
}
}
vlc_interrupt_t
*
vlclua_set_interrupt
(
lua_State
*
L
)
{
vlclua_dtable_t
*
dt
=
vlclua_get_dtable
(
L
);
return
vlc_interrupt_set
(
dt
->
interrupt
);
}
/** Maps an OS file descriptor to a VLC Lua file descriptor */
/** Maps an OS file descriptor to a VLC Lua file descriptor */
static
int
vlclua_fd_map
(
lua_State
*
L
,
int
fd
)
static
int
vlclua_fd_map
(
lua_State
*
L
,
int
fd
)
{
{
...
@@ -343,8 +349,7 @@ static int vlclua_net_poll( lua_State *L )
...
@@ -343,8 +349,7 @@ static int vlclua_net_poll( lua_State *L )
lua_pop
(
L
,
1
);
lua_pop
(
L
,
1
);
}
}
vlclua_dtable_t
*
dt
=
vlclua_get_dtable
(
L
);
vlc_interrupt_t
*
oint
=
vlclua_set_interrupt
(
L
);
vlc_interrupt_t
*
oint
=
vlc_interrupt_set
(
dt
->
interrupt
);
int
ret
=
1
,
val
;
int
ret
=
1
,
val
;
do
do
...
...
modules/lua/vlc.h
View file @
bae1e6a0
...
@@ -180,6 +180,7 @@ typedef struct
...
@@ -180,6 +180,7 @@ typedef struct
int
vlclua_fd_init
(
lua_State
*
,
vlclua_dtable_t
*
);
int
vlclua_fd_init
(
lua_State
*
,
vlclua_dtable_t
*
);
void
vlclua_fd_interrupt
(
vlclua_dtable_t
*
);
void
vlclua_fd_interrupt
(
vlclua_dtable_t
*
);
void
vlclua_fd_cleanup
(
vlclua_dtable_t
*
);
void
vlclua_fd_cleanup
(
vlclua_dtable_t
*
);
struct
vlc_interrupt
*
vlclua_set_interrupt
(
lua_State
*
L
);
/**
/**
* Per-interface private state
* Per-interface private state
...
...
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