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
b6c3adca
Commit
b6c3adca
authored
Jan 25, 2009
by
Qball Cow
Committed by
Max Kellermann
Jan 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add idle event on sticker deletion, update and insertion
parent
3635c93a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
idle.c
src/idle.c
+1
-1
idle.h
src/idle.h
+3
-0
sticker.c
src/sticker.c
+5
-0
No files found.
src/idle.c
View file @
b6c3adca
...
...
@@ -38,7 +38,7 @@ static const char *const idle_names[] = {
"mixer"
,
"output"
,
"options"
,
"
elapsed
"
,
"
sticker
"
,
NULL
};
...
...
src/idle.h
View file @
b6c3adca
...
...
@@ -46,6 +46,9 @@ enum {
/** options have changed: crossfade, random, repeat, ... */
IDLE_OPTIONS
=
0x40
,
/** a sticker has been modified. */
IDLE_STICKER
=
0x80
,
};
/**
...
...
src/sticker.c
View file @
b6c3adca
...
...
@@ -17,6 +17,7 @@
*/
#include "sticker.h"
#include "idle.h"
#include <glib.h>
#include <sqlite3.h>
...
...
@@ -239,6 +240,7 @@ sticker_update_value(const char *type, const char *uri,
sqlite3_reset
(
sticker_stmt_update
);
sqlite3_clear_bindings
(
sticker_stmt_update
);
idle_add
(
IDLE_STICKER
);
return
ret
>
0
;
}
...
...
@@ -299,6 +301,8 @@ sticker_insert_value(const char *type, const char *uri,
sqlite3_reset
(
sticker_stmt_insert
);
sqlite3_clear_bindings
(
sticker_stmt_insert
);
idle_add
(
IDLE_STICKER
);
return
true
;
}
...
...
@@ -357,5 +361,6 @@ sticker_delete(const char *type, const char *uri)
sqlite3_reset
(
sticker_stmt_delete
);
sqlite3_clear_bindings
(
sticker_stmt_delete
);
idle_add
(
IDLE_STICKER
);
return
true
;
}
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