diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2008-12-15 17:10:09 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2008-12-15 17:10:09 +0000 |
commit | 2721c9054f96693a77cb522358beb9021038edc7 (patch) | |
tree | 5839af331351c274b1de1f852d6c2c6747a31e3c /ui | |
parent | 161a683873dc52a7a72242d1a006faed0f92ad3f (diff) | |
download | librcc-2721c9054f96693a77cb522358beb9021038edc7.tar.gz librcc-2721c9054f96693a77cb522358beb9021038edc7.tar.bz2 librcc-2721c9054f96693a77cb522358beb9021038edc7.tar.xz librcc-2721c9054f96693a77cb522358beb9021038edc7.zip |
Provide GPL disclaimers with all sources
- Add GPL disclaimers to all sources
- Suppress gcc-4.2 warnings
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk.c | 19 | ||||
-rw-r--r-- | ui/internal.h | 19 | ||||
-rw-r--r-- | ui/librccui.c | 51 | ||||
-rw-r--r-- | ui/librccui.h | 19 | ||||
-rw-r--r-- | ui/null.c | 19 | ||||
-rw-r--r-- | ui/rccmenu.c | 19 | ||||
-rw-r--r-- | ui/rccmenu.h | 19 | ||||
-rw-r--r-- | ui/rccnames.c | 19 | ||||
-rw-r--r-- | ui/rccnames.h | 19 |
9 files changed, 187 insertions, 16 deletions
@@ -1,3 +1,22 @@ +/* + LibRCC UI - GTK library + + Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org> + + This program is free software; you can redistribute it and/or modify it + under the terms of version 2 of the GNU General Public License as published + by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +*/ + #include <stdio.h> #include <gtk/gtk.h> diff --git a/ui/internal.h b/ui/internal.h index 49a932f..88b9568 100644 --- a/ui/internal.h +++ b/ui/internal.h @@ -1,3 +1,22 @@ +/* + LibRCC UI - internal data structures + + Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org> + + This program is free software; you can redistribute it and/or modify it + under the terms of version 2 of the GNU General Public License as published + by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +*/ + #ifndef _RCC_UI_INTERNAL_H #define _RCC_UI_INTERNAL_H diff --git a/ui/librccui.c b/ui/librccui.c index 1979899..5b8febd 100644 --- a/ui/librccui.c +++ b/ui/librccui.c @@ -1,3 +1,22 @@ +/* + LibRCC UI - base implmentation + + Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org> + + This program is free software; you can redistribute it and/or modify it + under the terms of version 2 of the GNU General Public License as published + by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +*/ + #include <stdio.h> #include <string.h> #include <stdarg.h> @@ -53,7 +72,7 @@ static const char *rccUiXmlGetText(xmlNodePtr node) { - if ((node)&&(node->children)&&(node->children->type == XML_TEXT_NODE)&&(node->children->content)) return node->children->content; + if ((node)&&(node->children)&&(node->children->type == XML_TEXT_NODE)&&(node->children->content)) return (const char*)node->children->content; return NULL; } @@ -87,7 +106,7 @@ static xmlNodePtr rccUiNodeFind(xmlXPathContextPtr xpathctx, const char *request va_end(ap); } else req = (char*)request; - obj = xmlXPathEvalExpression(req, xpathctx); + obj = xmlXPathEvalExpression((xmlChar*)req, xpathctx); if (obj) { node_set = obj->nodesetval; if ((node_set)&&(node_set->nodeNr > 0)) { @@ -114,7 +133,7 @@ static xmlNodePtr rccUiNodeFind(xmlXPathContextPtr xpathctx, const char *request if (icnv) { \ tmpbuf = rccIConv(icnv, fullname, 0, NULL); \ if (tmpbuf) { \ - cnode = xmlNewChild(node->parent, NULL, "Recoded", tmpbuf); \ + cnode = xmlNewChild(node->parent, NULL, (xmlChar*)"Recoded", (xmlChar*)tmpbuf); \ fullname = rccUiXmlGetText(cnode); \ if (!fullname) fullname = rccUiXmlGetText(node); \ free(tmpbuf); \ @@ -125,7 +144,7 @@ static xmlNodePtr rccUiNodeFind(xmlXPathContextPtr xpathctx, const char *request } \ #define DO_NAME(XPATH_ME, XPATH_ME_REQUEST, XPATH_ME_REQUEST_LOCALE, my_name) \ - obj = xmlXPathEvalExpression(XPATH_ME, xpathctx); \ + obj = xmlXPathEvalExpression((xmlChar*)XPATH_ME, xpathctx); \ if (obj) { \ node_set = obj->nodesetval; \ if (node_set) nnodes = node_set->nodeNr; \ @@ -139,8 +158,8 @@ static xmlNodePtr rccUiNodeFind(xmlXPathContextPtr xpathctx, const char *request \ for (i=0,k=0;i<nnodes;i++) { \ node = node_set->nodeTab[i]; \ - attr = xmlHasProp(node, "name"); \ - class_name = attr->children->content; \ + attr = xmlHasProp(node, (xmlChar*)"name"); \ + class_name = (const char*)attr->children->content; \ \ if ((!class_name)||(!class_name[0])) continue; \ \ @@ -157,7 +176,7 @@ static xmlNodePtr rccUiNodeFind(xmlXPathContextPtr xpathctx, const char *request if (icnv) { \ tmpbuf = rccIConv(icnv, fullname, 0, NULL); \ if (tmpbuf) { \ - cnode = xmlNewChild(node->parent, NULL, "Recoded", tmpbuf); \ + cnode = xmlNewChild(node->parent, NULL, (xmlChar*)"Recoded", (xmlChar*)tmpbuf); \ fullname = rccUiXmlGetText(cnode); \ if (!fullname) fullname = rccUiXmlGetText(node); \ free(tmpbuf); \ @@ -247,7 +266,7 @@ int rccUiInit() { if (xmlctx) xpathctx = xmlXPathNewContext(xmlctx); else xpathctx = NULL; if (xpathctx) { - obj = xmlXPathEvalExpression(XPATH_LANGUAGE, xpathctx); + obj = xmlXPathEvalExpression((xmlChar*)XPATH_LANGUAGE, xpathctx); if (obj) { node_set = obj->nodesetval; if (node_set) nnodes = node_set->nodeNr; @@ -256,8 +275,8 @@ int rccUiInit() { for (i=0;i<nnodes;i++) { node = node_set->nodeTab[i]; - attr = xmlHasProp(node, "name"); - lang = attr->children->content; + attr = xmlHasProp(node, (xmlChar*)"name"); + lang = (const char*)attr->children->content; if ((!lang)||(!lang[0])) continue; @@ -274,7 +293,7 @@ int rccUiInit() { if (icnv) { tmpbuf = rccIConv(icnv, fullname, 0, NULL); if (tmpbuf) { - cnode = xmlNewChild(node->parent, NULL, "Recoded", tmpbuf); + cnode = xmlNewChild(node->parent, NULL, (xmlChar*)"Recoded", (xmlChar*)tmpbuf); fullname = rccUiXmlGetText(cnode); if (!fullname) fullname = rccUiXmlGetText(node); free(tmpbuf); @@ -293,7 +312,7 @@ int rccUiInit() { if (obj) xmlXPathFreeObject(obj); - obj = xmlXPathEvalExpression(XPATH_OPTION, xpathctx); + obj = xmlXPathEvalExpression((xmlChar*)XPATH_OPTION, xpathctx); if (obj) { node_set = obj->nodesetval; if (node_set) nnodes = node_set->nodeNr; @@ -302,8 +321,8 @@ int rccUiInit() { for (i=0;i<nnodes;i++) { node = node_set->nodeTab[i]; - attr = xmlHasProp(node, "name"); - opt = attr->children->content; + attr = xmlHasProp(node, (xmlChar*)"name"); + opt = (const char*)attr->children->content; if ((!opt)||(!opt[0])) continue; option = rccGetOptionByName(opt); @@ -323,7 +342,7 @@ int rccUiInit() { if (icnv) { tmpbuf = rccIConv(icnv, fullname, 0, NULL); if (tmpbuf) { - cnode = xmlNewChild(node->parent, NULL, "Recoded", tmpbuf); + cnode = xmlNewChild(node->parent, NULL, (xmlChar*)"Recoded", (xmlChar*)tmpbuf); fullname = rccUiXmlGetText(cnode); if (!fullname) fullname = rccUiXmlGetText(node); free(tmpbuf); @@ -351,7 +370,7 @@ int rccUiInit() { if (icnv) { tmpbuf = rccIConv(icnv, fullname, 0, NULL); if (tmpbuf) { - cnode = xmlNewChild(node->parent, NULL, "Recoded", tmpbuf); + cnode = xmlNewChild(node->parent, NULL, (xmlChar*)"Recoded", (xmlChar*)tmpbuf); fullname = rccUiXmlGetText(cnode); if (!fullname) fullname = rccUiXmlGetText(node); free(tmpbuf); diff --git a/ui/librccui.h b/ui/librccui.h index b0a4cef..559720b 100644 --- a/ui/librccui.h +++ b/ui/librccui.h @@ -1,3 +1,22 @@ +/* + LibRCC - public interface + + Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org> + + This program is free software; you can redistribute it and/or modify it + under the terms of version 2 of the GNU General Public License as published + by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +*/ + #ifndef _LIBRCC_UI_H #define _LIBRCC_UI_H @@ -1,3 +1,22 @@ +/* + LibRCC UI - dummy library + + Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org> + + This program is free software; you can redistribute it and/or modify it + under the terms of version 2 of the GNU General Public License as published + by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +*/ + #include <stdio.h> #include <librcc.h> diff --git a/ui/rccmenu.c b/ui/rccmenu.c index 0e87b08..c42133b 100644 --- a/ui/rccmenu.c +++ b/ui/rccmenu.c @@ -1,3 +1,22 @@ +/* + LibRCC - menu abstraction + + Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org> + + This program is free software; you can redistribute it and/or modify it + under the terms of version 2 of the GNU General Public License as published + by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +*/ + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/ui/rccmenu.h b/ui/rccmenu.h index f757732..28473ca 100644 --- a/ui/rccmenu.h +++ b/ui/rccmenu.h @@ -1,3 +1,22 @@ +/* + LibRCC - menu abstraction + + Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org> + + This program is free software; you can redistribute it and/or modify it + under the terms of version 2 of the GNU General Public License as published + by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +*/ + #ifndef _RCC_UI_MENU_H #define _RCC_UI_MENU_H diff --git a/ui/rccnames.c b/ui/rccnames.c index 3a8ade1..59479fa 100644 --- a/ui/rccnames.c +++ b/ui/rccnames.c @@ -1,3 +1,22 @@ +/* + LibRCC - module providing various titles in appropriate language and encoding + + Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org> + + This program is free software; you can redistribute it and/or modify it + under the terms of version 2 of the GNU General Public License as published + by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +*/ + #include <stdio.h> #include <string.h> diff --git a/ui/rccnames.h b/ui/rccnames.h index bfb022a..d2a0da3 100644 --- a/ui/rccnames.h +++ b/ui/rccnames.h @@ -1,3 +1,22 @@ +/* + LibRCC - module providing various titles in appropriate language and encoding + + Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org> + + This program is free software; you can redistribute it and/or modify it + under the terms of version 2 of the GNU General Public License as published + by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +*/ + #ifndef _RCC_UI_NAMES_C #define _RCC_UI_NAMES_H |