X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Ftext-node.h;fp=src%2Ftext-node.h;h=0c7a8f90436d2244dc8290986b6b259e0fa8e02d;hb=db2403f05e4bd16e08346e4896e8feead63d0b12;hp=4a9bd2281f133e17ae3b15828ab6a8b486d43392;hpb=9971dd3e6268224ee930a26fdb30f22395406233;p=glabels diff --git a/src/text-node.h b/src/text-node.h index 4a9bd228..0c7a8f90 100644 --- a/src/text-node.h +++ b/src/text-node.h @@ -1,31 +1,27 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ - /* - * (GLABELS) Label and Business Card Creation program for GNOME - * - * text_node.h: text node module header file + * text-node.h + * Copyright (C) 2001-2009 Jim Evins . * - * Copyright (C) 2001-2002 Jim Evins . + * This file is part of gLabels. * - * This program is free software; you can redistribute it and/or modify + * gLabels is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, + * gLabels 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 + * along with gLabels. If not, see . */ + #ifndef __TEXT_NODE_H__ #define __TEXT_NODE_H__ -#include -#include +#include #include "merge.h" G_BEGIN_DECLS @@ -35,24 +31,35 @@ typedef struct { gchar *data; } glTextNode; -gchar *gl_text_node_expand (glTextNode *text_node, - glMergeRecord *record); -glTextNode *gl_text_node_new_from_text (gchar *text); -glTextNode *gl_text_node_dup (glTextNode *text_node); -void gl_text_node_free (glTextNode **text_node); +gchar *gl_text_node_expand (const glTextNode *text_node, + const glMergeRecord *record); +glTextNode *gl_text_node_new_from_text (const gchar *text); +glTextNode *gl_text_node_dup (const glTextNode *text_node); +void gl_text_node_free (glTextNode **text_node); -gboolean gl_text_node_equal (glTextNode *text_node1, - glTextNode *text_node2); +gboolean gl_text_node_equal (const glTextNode *text_node1, + const glTextNode *text_node2); -gchar *gl_text_node_lines_expand (GList *lines, - glMergeRecord *record); -GList *gl_text_node_lines_new_from_text (gchar *text); -GList *gl_text_node_lines_dup (GList *lines); -void gl_text_node_lines_free (GList **lines); +gchar *gl_text_node_lines_expand (GList *lines, + const glMergeRecord *record); +GList *gl_text_node_lines_new_from_text (const gchar *text); +GList *gl_text_node_lines_dup (GList *lines); +void gl_text_node_lines_free (GList **lines); /* debug function */ -void gl_text_node_lines_print (GList *lines); +void gl_text_node_lines_print (GList *lines); G_END_DECLS #endif + + + +/* + * Local Variables: -- emacs + * mode: C -- emacs + * c-basic-offset: 8 -- emacs + * tab-width: 8 -- emacs + * indent-tabs-mode: nil -- emacs + * End: -- emacs + */