Fix alsa_init() error path.
[paraslash.git] / ggo.h
1 /*
2 * Copyright (C) 2008-2011 Andre Noll <maan@systemlinux.org>
3 *
4 * Licensed under the GPL v2. For licencing details see COPYING.
5 */
6
7 /** \file ggo.h Functions and structures for help text handling. */
8
9 /**
10 * Used by exexutables that can not use gengetopt's generated help function.
11 */
12 struct ggo_help {
13 /** The lines of the short help text. */
14 const char **short_help;
15 /** The lines of the detailed help text. */
16 const char **detailed_help;
17 };
18
19 void ggo_print_help(struct ggo_help *help, int detailed_help);
20 __printf_1_2 void printf_or_die(const char *fmt, ...);