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
9919704b
Commit
9919704b
authored
Apr 13, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
httpd: use C99 "bool" instead of GLib's gboolean
Plain "bool" consumes only one byte instead of four.
parent
3f81f5b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
httpd_client.c
src/output/httpd_client.c
+7
-7
No files found.
src/output/httpd_client.c
View file @
9919704b
...
...
@@ -92,12 +92,12 @@ struct httpd_client {
/**
* If we should sent icy metadata.
*/
gboolean
metadata_requested
;
bool
metadata_requested
;
/**
* If the current metadata was already sent to the client.
*/
gboolean
metadata_sent
;
bool
metadata_sent
;
/**
* The amount of streaming data between each metadata block
...
...
@@ -210,7 +210,7 @@ httpd_client_handle_line(struct httpd_client *client, const char *line)
if
(
g_ascii_strncasecmp
(
line
,
"Icy-MetaData: 1"
,
15
)
==
0
)
{
/* Send icy metadata */
client
->
metadata_requested
=
TRUE
;
client
->
metadata_requested
=
true
;
return
true
;
}
...
...
@@ -443,8 +443,8 @@ httpd_client_new(struct httpd_output *httpd, int fd)
client
->
input
=
fifo_buffer_new
(
4096
);
client
->
state
=
REQUEST
;
client
->
metadata_requested
=
FALSE
;
client
->
metadata_sent
=
TRUE
;
client
->
metadata_requested
=
false
;
client
->
metadata_sent
=
true
;
client
->
metaint
=
8192
;
/*TODO: just a std value */
client
->
metadata
=
NULL
;
client
->
metadata_current_position
=
0
;
...
...
@@ -592,7 +592,7 @@ httpd_client_out_event(GIOChannel *source,
-
client
->
metadata_current_position
==
0
)
{
client
->
metadata_fill
=
0
;
client
->
metadata_current_position
=
0
;
client
->
metadata_sent
=
TRUE
;
client
->
metadata_sent
=
true
;
}
}
else
{
struct
page
*
empty_meta
;
...
...
@@ -702,5 +702,5 @@ httpd_client_send_metadata(struct httpd_client *client, struct page *page)
page_ref
(
page
);
client
->
metadata
=
page
;
client
->
metadata_sent
=
FALSE
;
client
->
metadata_sent
=
false
;
}
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