X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=audioc.c;h=3cc5b0bd7b4d2e385a902f1b241abe779d8207fa;hp=216afa2f11aeebc132d23ad2a96664daf9e384cd;hb=d61d4f3dc0d2e0a59e221add150bf971c0f03c65;hpb=ce2bb6c458275ec6c0a115a2c814a15761474f11 diff --git a/audioc.c b/audioc.c index 216afa2f..3cc5b0bd 100644 --- a/audioc.c +++ b/audioc.c @@ -27,8 +27,8 @@ INIT_AUDIOC_ERRLISTS; +/** the gengetopt structure containing command line args */ struct audioc_args_info conf; -char *tmpfifo; INIT_STDERR_LOGGING(conf.loglevel_arg); @@ -59,6 +59,21 @@ static char *configfile_exists(void) return NULL; } +/** + * the client program to connect to para_audiod + * + * \param argc usual argument count + * \param argv usual argument vector + * + * It creates a temporary local socket in order to communicate with para_audiod. + * Authentication consists in sending a ucred buffer that contains the user id. + * + * Any output received through the local socket is sent to stdout. + * + * \return EXIT_SUCCESS or EXIT_FAILURE + * + * \sa send_cred_buffer(), para_audioc(1), para_audiod(1). + */ int main(int argc, char *argv[]) { struct sockaddr_un unix_addr;