Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
d68185aa
Commit
d68185aa
authored
Jan 28, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/iso9660: rename the classes
parent
4cab151e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
Iso9660ArchivePlugin.cxx
src/archive/Iso9660ArchivePlugin.cxx
+18
-18
No files found.
src/archive/Iso9660ArchivePlugin.cxx
View file @
d68185aa
...
...
@@ -38,7 +38,7 @@
#define CEILING(x, y) ((x+(y-1))/y)
struct
iso9660_archive_f
ile
{
struct
Iso9660ArchiveF
ile
{
struct
archive_file
base
;
struct
refcount
ref
;
...
...
@@ -59,7 +59,7 @@ iso9660_quark(void)
/* archive open && listing routine */
static
void
listdir_recur
(
const
char
*
psz_path
,
struct
iso9660_archive_f
ile
*
context
)
listdir_recur
(
const
char
*
psz_path
,
Iso9660ArchiveF
ile
*
context
)
{
iso9660_t
*
iso
=
context
->
iso
;
CdioList_t
*
entlist
;
...
...
@@ -95,8 +95,8 @@ listdir_recur(const char *psz_path, struct iso9660_archive_file *context)
static
struct
archive_file
*
iso9660_archive_open
(
const
char
*
pathname
,
GError
**
error_r
)
{
struct
iso9660_archive_f
ile
*
context
=
g_new
(
struct
iso9660_archive_f
ile
,
1
);
Iso9660ArchiveF
ile
*
context
=
g_new
(
Iso9660ArchiveF
ile
,
1
);
archive_file_init
(
&
context
->
base
,
&
iso9660_archive_plugin
);
refcount_init
(
&
context
->
ref
);
...
...
@@ -119,8 +119,8 @@ iso9660_archive_open(const char *pathname, GError **error_r)
static
void
iso9660_archive_scan_reset
(
struct
archive_file
*
file
)
{
struct
iso9660_archive_f
ile
*
context
=
(
struct
iso9660_archive_f
ile
*
)
file
;
Iso9660ArchiveF
ile
*
context
=
(
Iso9660ArchiveF
ile
*
)
file
;
//reset iterator
context
->
iter
=
context
->
list
;
...
...
@@ -129,8 +129,8 @@ iso9660_archive_scan_reset(struct archive_file *file)
static
char
*
iso9660_archive_scan_next
(
struct
archive_file
*
file
)
{
struct
iso9660_archive_f
ile
*
context
=
(
struct
iso9660_archive_f
ile
*
)
file
;
Iso9660ArchiveF
ile
*
context
=
(
Iso9660ArchiveF
ile
*
)
file
;
char
*
data
=
NULL
;
if
(
context
->
iter
!=
NULL
)
{
...
...
@@ -144,8 +144,8 @@ iso9660_archive_scan_next(struct archive_file *file)
static
void
iso9660_archive_close
(
struct
archive_file
*
file
)
{
struct
iso9660_archive_f
ile
*
context
=
(
struct
iso9660_archive_f
ile
*
)
file
;
Iso9660ArchiveF
ile
*
context
=
(
Iso9660ArchiveF
ile
*
)
file
;
GSList
*
tmp
;
if
(
!
refcount_dec
(
&
context
->
ref
))
...
...
@@ -165,10 +165,10 @@ iso9660_archive_close(struct archive_file *file)
/* single archive handling */
struct
iso9660_input_s
tream
{
struct
Iso9660InputS
tream
{
struct
input_stream
base
;
struct
iso9660_archive_f
ile
*
archive
;
Iso9660ArchiveF
ile
*
archive
;
iso9660_stat_t
*
statbuf
;
size_t
max_blocks
;
...
...
@@ -179,11 +179,11 @@ iso9660_archive_open_stream(struct archive_file *file, const char *pathname,
Mutex
&
mutex
,
Cond
&
cond
,
GError
**
error_r
)
{
struct
iso9660_archive_f
ile
*
context
=
(
struct
iso9660_archive_f
ile
*
)
file
;
struct
iso9660_input_s
tream
*
iis
;
Iso9660ArchiveF
ile
*
context
=
(
Iso9660ArchiveF
ile
*
)
file
;
Iso9660InputS
tream
*
iis
;
iis
=
g_new
(
struct
iso9660_input_s
tream
,
1
);
iis
=
g_new
(
Iso9660InputS
tream
,
1
);
input_stream_init
(
&
iis
->
base
,
&
iso9660_input_plugin
,
pathname
,
mutex
,
cond
);
...
...
@@ -212,7 +212,7 @@ iso9660_archive_open_stream(struct archive_file *file, const char *pathname,
static
void
iso9660_input_close
(
struct
input_stream
*
is
)
{
struct
iso9660_input_stream
*
iis
=
(
struct
iso9660_input_s
tream
*
)
is
;
Iso9660InputStream
*
iis
=
(
Iso9660InputS
tream
*
)
is
;
g_free
(
iis
->
statbuf
);
...
...
@@ -226,7 +226,7 @@ iso9660_input_close(struct input_stream *is)
static
size_t
iso9660_input_read
(
struct
input_stream
*
is
,
void
*
ptr
,
size_t
size
,
GError
**
error_r
)
{
struct
iso9660_input_stream
*
iis
=
(
struct
iso9660_input_s
tream
*
)
is
;
Iso9660InputStream
*
iis
=
(
Iso9660InputS
tream
*
)
is
;
int
toread
,
readed
=
0
;
int
no_blocks
,
cur_block
;
size_t
left_bytes
=
iis
->
statbuf
->
size
-
is
->
offset
;
...
...
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