|
Packit |
ff063f |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
Packit |
ff063f |
/*
|
|
Packit |
ff063f |
* list.c
|
|
Packit |
ff063f |
* Copyright (C) 2011-2012 Akira TAGOH
|
|
Packit |
ff063f |
*
|
|
Packit |
ff063f |
* Authors:
|
|
Packit |
ff063f |
* Akira TAGOH <akira@tagoh.org>
|
|
Packit |
ff063f |
*
|
|
Packit |
ff063f |
* This library is free software: you can redistribute it and/or
|
|
Packit |
ff063f |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
ff063f |
* License as published by the Free Software Foundation, either
|
|
Packit |
ff063f |
* version 3 of the License, or (at your option) any later version.
|
|
Packit |
ff063f |
*
|
|
Packit |
ff063f |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
ff063f |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
ff063f |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
ff063f |
* GNU General Public License for more details.
|
|
Packit |
ff063f |
*
|
|
Packit |
ff063f |
* You should have received a copy of the GNU General Public License
|
|
Packit |
ff063f |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
ff063f |
*/
|
|
Packit |
ff063f |
#include <glib.h>
|
|
Packit |
ff063f |
#include <libeasyfc/ezfc.h>
|
|
Packit |
ff063f |
#include <locale.h>
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
int
|
|
Packit |
ff063f |
main(int argc, char **argv)
|
|
Packit |
ff063f |
{
|
|
Packit |
ff063f |
GList *l, *ll;
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
if (argc < 3) {
|
|
Packit |
ff063f |
g_print("Usage: %s <lang> <alias>\n", argv[0]);
|
|
Packit |
ff063f |
return 1;
|
|
Packit |
ff063f |
}
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
setlocale(LC_ALL, "");
|
|
Packit |
ff063f |
ezfc_init();
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
l = ezfc_font_get_list(argv[1], argv[2], TRUE);
|
|
Packit |
ff063f |
for (ll = l; ll != NULL; ll = g_list_next(ll)) {
|
|
Packit |
ff063f |
g_print("%s\n", (gchar *)ll->data);
|
|
Packit |
ff063f |
g_free(ll->data);
|
|
Packit |
ff063f |
}
|
|
Packit |
ff063f |
g_list_free(l);
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
ezfc_finalize();
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
return 0;
|
|
Packit |
ff063f |
}
|