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
be38ad5b
Commit
be38ad5b
authored
Mar 14, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sticker: don't export sticker_list_values()
sticker_list_values() is only used internally in sticker.c. Remove sticker_song_list_values() completely, it is superseded by sticker_song_get().
parent
24da9410
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
32 deletions
+1
-32
song_sticker.c
src/song_sticker.c
+0
-16
song_sticker.h
src/song_sticker.h
+0
-7
sticker.c
src/sticker.c
+1
-1
sticker.h
src/sticker.h
+0
-8
No files found.
src/song_sticker.c
View file @
be38ad5b
...
@@ -40,22 +40,6 @@ sticker_song_get_value(const struct song *song, const char *name)
...
@@ -40,22 +40,6 @@ sticker_song_get_value(const struct song *song, const char *name)
return
value
;
return
value
;
}
}
GHashTable
*
sticker_song_list_values
(
const
struct
song
*
song
)
{
char
*
uri
;
GHashTable
*
hash
;
assert
(
song
!=
NULL
);
assert
(
song_in_database
(
song
));
uri
=
song_get_uri
(
song
);
hash
=
sticker_list_values
(
"song"
,
uri
);
g_free
(
uri
);
return
hash
;
}
bool
bool
sticker_song_set_value
(
const
struct
song
*
song
,
sticker_song_set_value
(
const
struct
song
*
song
,
const
char
*
name
,
const
char
*
value
)
const
char
*
name
,
const
char
*
value
)
...
...
src/song_sticker.h
View file @
be38ad5b
...
@@ -42,13 +42,6 @@ sticker_song_set_value(const struct song *song,
...
@@ -42,13 +42,6 @@ sticker_song_set_value(const struct song *song,
const
char
*
name
,
const
char
*
value
);
const
char
*
name
,
const
char
*
value
);
/**
/**
* Returns a hash table of key value pairs from a song's sticker record.
* The caller must free the GHashTable with g_hash_table_destroy().
*/
GHashTable
*
sticker_song_list_values
(
const
struct
song
*
song
);
/**
* Deletes a sticker from the database. All values are deleted.
* Deletes a sticker from the database. All values are deleted.
*/
*/
bool
bool
...
...
src/sticker.c
View file @
be38ad5b
...
@@ -194,7 +194,7 @@ sticker_load_value(const char *type, const char *uri, const char *name)
...
@@ -194,7 +194,7 @@ sticker_load_value(const char *type, const char *uri, const char *name)
return
value
;
return
value
;
}
}
GHashTable
*
static
GHashTable
*
sticker_list_values
(
const
char
*
type
,
const
char
*
uri
)
sticker_list_values
(
const
char
*
type
,
const
char
*
uri
)
{
{
int
ret
;
int
ret
;
...
...
src/sticker.h
View file @
be38ad5b
...
@@ -67,14 +67,6 @@ bool
...
@@ -67,14 +67,6 @@ bool
sticker_enabled
(
void
);
sticker_enabled
(
void
);
/**
/**
* Populates a GHashTable with GStrings of sticker keys and values
* from an object's sticker record. The caller must free the returned
* GHashTable with g_hash_list_destroy().
*/
GHashTable
*
sticker_list_values
(
const
char
*
type
,
const
char
*
uri
);
/**
* Returns one value from an object's sticker record. The caller must
* Returns one value from an object's sticker record. The caller must
* free the return value with g_free().
* free the return value with g_free().
*/
*/
...
...
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