documentation update

This commit is contained in:
Julien Danjou 2008-02-27 09:00:42 +01:00
parent 7a1208ad8a
commit c1f06b3d3f
3 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/* /*
* awesome-client-common.c - awesome client, communicate with socket, common functions * awclient.c - awesome client, communicate with socket, common functions
* *
* Copyright © 2007-2008 Julien Danjou <julien@danjou.info> * Copyright © 2007-2008 Julien Danjou <julien@danjou.info>
* Copyright © 2007 daniel@brinkers.de * Copyright © 2007 daniel@brinkers.de
@ -29,6 +29,11 @@
#define CONTROL_UNIX_SOCKET_PATH ".awesome_ctl." #define CONTROL_UNIX_SOCKET_PATH ".awesome_ctl."
/** Get a sockaddr_un struct with information feeded for opening a
* communication to the awesome socket for given display
* \param display the display number
* \return sockaddr_un struct ready to be used or NULL if a problem occured
*/
struct sockaddr_un * struct sockaddr_un *
get_client_addr(const char *display) get_client_addr(const char *display)
{ {
@ -72,6 +77,9 @@ get_client_addr(const char *display)
return addr; return addr;
} }
/** Get a AF_UNIX socket for communicating with awesome
* \return the socket file descriptor
*/
int int
get_client_socket(void) get_client_socket(void)
{ {

View File

@ -1,5 +1,5 @@
/* /*
* awesome-client.h - awesome client header * awclient.h - awesome client header
* *
* Copyright © 2007-2008 Julien Danjou <julien@danjou.info> * Copyright © 2007-2008 Julien Danjou <julien@danjou.info>
* *

View File

@ -26,8 +26,8 @@
#include "awesome-version-internal.h" #include "awesome-version-internal.h"
/** \brief Print version message and quit program. /** \brief Print version message and quit program.
* \param executable program name
*/ */
void void
eprint_version(const char *const executable) eprint_version(const char *const executable)
{ {