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
d98a863b
Commit
d98a863b
authored
Feb 13, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
client: add "pure" attributes
parent
3b6790c7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
client.h
src/client.h
+3
-0
No files found.
src/client.h
View file @
d98a863b
...
@@ -35,14 +35,17 @@ void client_manager_deinit(void);
...
@@ -35,14 +35,17 @@ void client_manager_deinit(void);
void
client_new
(
struct
player_control
*
player_control
,
void
client_new
(
struct
player_control
*
player_control
,
int
fd
,
const
struct
sockaddr
*
sa
,
size_t
sa_length
,
int
uid
);
int
fd
,
const
struct
sockaddr
*
sa
,
size_t
sa_length
,
int
uid
);
G_GNUC_PURE
bool
client_is_expired
(
const
struct
client
*
client
);
bool
client_is_expired
(
const
struct
client
*
client
);
/**
/**
* returns the uid of the client process, or a negative value if the
* returns the uid of the client process, or a negative value if the
* uid is unknown
* uid is unknown
*/
*/
G_GNUC_PURE
int
client_get_uid
(
const
struct
client
*
client
);
int
client_get_uid
(
const
struct
client
*
client
);
G_GNUC_PURE
unsigned
client_get_permission
(
const
struct
client
*
client
);
unsigned
client_get_permission
(
const
struct
client
*
client
);
void
client_set_permission
(
struct
client
*
client
,
unsigned
permission
);
void
client_set_permission
(
struct
client
*
client
,
unsigned
permission
);
...
...
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