Added GPLv2+ as license for libgrammatic
[cascardo/grammar.git] / rdp.h
diff --git a/rdp.h b/rdp.h
index 2e892fb..0daaddc 100644 (file)
--- a/rdp.h
+++ b/rdp.h
@@ -1,24 +1,40 @@
+/*
+ *  Copyright (C) 2005  Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
+ *
+ *  This program 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
+ *  (at your option) any later version.
+ *
+ *  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.,
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+
+
 #ifndef RDP_H
 #define RDP_H
 
-#include "parser.h"
+#include <grammar.h>
 
-typedef struct
-{
-  symbol_t* symbol;
-  gpointer attrib;
-} buffer_t;
+typedef struct _buffer buffer_t;
 
 typedef struct
 {
   nextcb cb;
   gpointer data;
-  GList* rules;
   GList* buffer;
   symbol_t* start;
+  grammar_t* grammar;
 } rdp_t;
 
-rdp_t* rdp_new (nextcb, gpointer, gint);
+rdp_t* rdp_new (nextcb, gpointer, gint, grammar_t*);
 void rdp_delete (rdp_t*);
 gpointer rdp_build (rdp_t*);