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
0e69ad32
Commit
0e69ad32
authored
Jan 29, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client_idle: export client_idle_add()
parent
9b4e14df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
client_idle.c
src/client_idle.c
+11
-5
client_idle.h
src/client_idle.h
+3
-0
No files found.
src/client_idle.c
View file @
0e69ad32
...
...
@@ -51,12 +51,9 @@ client_idle_notify(struct client *client)
g_timer_start
(
client
->
last_activity
);
}
static
void
client_idle_
callback
(
gpointer
data
,
gpointer
user_data
)
void
client_idle_
add
(
struct
client
*
client
,
unsigned
flags
)
{
struct
client
*
client
=
data
;
unsigned
flags
=
GPOINTER_TO_UINT
(
user_data
);
if
(
client_is_expired
(
client
))
return
;
...
...
@@ -68,6 +65,15 @@ client_idle_callback(gpointer data, gpointer user_data)
}
}
static
void
client_idle_callback
(
gpointer
data
,
gpointer
user_data
)
{
struct
client
*
client
=
data
;
unsigned
flags
=
GPOINTER_TO_UINT
(
user_data
);
client_idle_add
(
client
,
flags
);
}
void
client_manager_idle_add
(
unsigned
flags
)
{
assert
(
flags
!=
0
);
...
...
src/client_idle.h
View file @
0e69ad32
...
...
@@ -24,6 +24,9 @@
struct
client
;
void
client_idle_add
(
struct
client
*
client
,
unsigned
flags
);
/**
* Adds the specified idle flags to all clients and immediately sends
* notifications to all waiting clients.
...
...
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