mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
* Look for M4 in configure.ac
* Share auth cookies in module-tunnel.c, module-x11-publish.c and native-protocol.c * disable TCP_NODELAY * publish auth cookie in module-x11-publish git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@274 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
5844a33f0b
commit
b55923a8d3
15 changed files with 292 additions and 26 deletions
17
polyp/util.c
17
polyp/util.c
|
|
@ -715,3 +715,20 @@ FILE *pa_open_config_file(const char *global, const char *local, const char *env
|
|||
return fopen(global, "r");
|
||||
}
|
||||
|
||||
/* Format the specified data as a hexademical string */
|
||||
char *pa_hexstr(const uint8_t* d, size_t dlength, char *s, size_t slength) {
|
||||
size_t i = 0, j = 0;
|
||||
const char hex[] = "0123456789abcdef";
|
||||
assert(d && s && slength > 0);
|
||||
|
||||
while (i < dlength && j+3 <= slength) {
|
||||
s[j++] = hex[*d >> 4];
|
||||
s[j++] = hex[*d & 0xF];
|
||||
|
||||
d++;
|
||||
i++;
|
||||
}
|
||||
|
||||
s[j < slength ? j : slength] = 0;
|
||||
return s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue