From 1d0fcf308929bde5749b889373d5c2f338fa8969 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Fri, 28 Sep 2001 23:10:45 +0000 Subject: uniform command line options handling --- mixlib/mix.c | 10 +++++++++- mixlib/mix.h | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'mixlib') diff --git a/mixlib/mix.c b/mixlib/mix.c index 8f49303..af1ba40 100644 --- a/mixlib/mix.c +++ b/mixlib/mix.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- mix.c : * Implementation of the functions declared in mix.h * ------------------------------------------------------------------ - * $Id: mix.c,v 1.3 2001/09/24 23:26:31 jao Exp $ + * $Id: mix.c,v 1.4 2001/09/28 23:10:45 jao Exp $ * ------------------------------------------------------------------ * Copyright (C) 2000, 2001 Free Software Foundation, Inc. * @@ -60,6 +60,14 @@ const char *MIX_GPL_LICENSE = "under the terms of the GNU General Public License.\n" "For more information about these matters, see the files named COPYING.\n"; +void +mix_print_license (const gchar *program) +{ + fprintf (stderr, _("%s (GNU MDK %s)\n\n"), + program, VERSION); + fprintf (stderr, MIX_GPL_LICENSE); +} + /* check dir, and create it if it doesn't exist */ gboolean mix_stat_dir (const gchar *dirname, const gchar *alias) diff --git a/mixlib/mix.h b/mixlib/mix.h index 2d45636..01a57fa 100644 --- a/mixlib/mix.h +++ b/mixlib/mix.h @@ -1,6 +1,8 @@ /* -*-c-*- ---------------- mix.h : * Initialisation of the mix library * ------------------------------------------------------------------ + * $Id: mix.h,v 1.4 2001/09/28 23:10:45 jao Exp $ + * ------------------------------------------------------------------ * Copyright (C) 2000, 2001 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify @@ -60,6 +62,10 @@ mix_release_lib (void); extern const char *MIX_GPL_LICENSE; +extern void +mix_print_license (const gchar *program); + + /* check dir, and create it if it doesn't exist */ extern gboolean mix_stat_dir (const gchar *dirname, const gchar *alias); -- cgit v1.2.3