mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-08 10:06:56 -05:00
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@40 fefdeb5f-60dc-0310-8127-8f9354f1896f
30 lines
684 B
C
30 lines
684 B
C
#ifndef fooclienthfoo
|
|
#define fooclienthfoo
|
|
|
|
#include "core.h"
|
|
|
|
struct client {
|
|
uint32_t index;
|
|
|
|
char *name;
|
|
struct core *core;
|
|
const char *protocol_name;
|
|
|
|
void (*kill)(struct client *c);
|
|
void *userdata;
|
|
};
|
|
|
|
struct client *client_new(struct core *c, const char *protocol_name, char *name);
|
|
|
|
/* This function should be called only by the code that created the client */
|
|
void client_free(struct client *c);
|
|
|
|
/* Code that didn't create the client should call this function to
|
|
* request destruction of the client */
|
|
void client_kill(struct client *c);
|
|
|
|
char *client_list_to_string(struct core *c);
|
|
|
|
void client_rename(struct client *c, const char *name);
|
|
|
|
#endif
|