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
efcf40f5
Commit
efcf40f5
authored
Apr 01, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sticker: pass const sticker to sticker_foreach()
parent
8ce2ec7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
sticker.c
src/sticker.c
+2
-2
sticker.h
src/sticker.h
+2
-2
No files found.
src/sticker.c
View file @
efcf40f5
...
@@ -457,7 +457,7 @@ sticker_free(struct sticker *sticker)
...
@@ -457,7 +457,7 @@ sticker_free(struct sticker *sticker)
}
}
const
char
*
const
char
*
sticker_get_value
(
struct
sticker
*
sticker
,
const
char
*
name
)
sticker_get_value
(
const
struct
sticker
*
sticker
,
const
char
*
name
)
{
{
return
g_hash_table_lookup
(
sticker
->
table
,
name
);
return
g_hash_table_lookup
(
sticker
->
table
,
name
);
}
}
...
@@ -477,7 +477,7 @@ sticker_foreach_func(gpointer key, gpointer value, gpointer user_data)
...
@@ -477,7 +477,7 @@ sticker_foreach_func(gpointer key, gpointer value, gpointer user_data)
}
}
void
void
sticker_foreach
(
struct
sticker
*
sticker
,
sticker_foreach
(
const
struct
sticker
*
sticker
,
void
(
*
func
)(
const
char
*
name
,
const
char
*
value
,
void
(
*
func
)(
const
char
*
name
,
const
char
*
value
,
gpointer
user_data
),
gpointer
user_data
),
gpointer
user_data
)
gpointer
user_data
)
...
...
src/sticker.h
View file @
efcf40f5
...
@@ -104,7 +104,7 @@ sticker_free(struct sticker *sticker);
...
@@ -104,7 +104,7 @@ sticker_free(struct sticker *sticker);
* @return the sticker value, or NULL if none was found
* @return the sticker value, or NULL if none was found
*/
*/
const
char
*
const
char
*
sticker_get_value
(
struct
sticker
*
sticker
,
const
char
*
name
);
sticker_get_value
(
const
struct
sticker
*
sticker
,
const
char
*
name
);
/**
/**
* Iterates over all sticker items in a sticker.
* Iterates over all sticker items in a sticker.
...
@@ -114,7 +114,7 @@ sticker_get_value(struct sticker *sticker, const char *name);
...
@@ -114,7 +114,7 @@ sticker_get_value(struct sticker *sticker, const char *name);
* @param user_data an opaque pointer for the callback function
* @param user_data an opaque pointer for the callback function
*/
*/
void
void
sticker_foreach
(
struct
sticker
*
sticker
,
sticker_foreach
(
const
struct
sticker
*
sticker
,
void
(
*
func
)(
const
char
*
name
,
const
char
*
value
,
void
(
*
func
)(
const
char
*
name
,
const
char
*
value
,
gpointer
user_data
),
gpointer
user_data
),
gpointer
user_data
);
gpointer
user_data
);
...
...
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