---
 plugins/dump/dump.c |   42 ++++++++++++++++++++++++++++--------------
 plugins/dump/dump.h |   28 ++++++++++++++--------------
 2 files changed, 42 insertions(+), 28 deletions(-)

diff --git a/plugins/dump/dump.c b/plugins/dump/dump.c
index 145513a..7b46eb2 100644
--- a/plugins/dump/dump.c
+++ b/plugins/dump/dump.c
@@ -26,8 +26,21 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 #include "dump.h"
 #include <wchar.h>
 #include "messages.h"
+#include "plugin.h"
 
-void
+DECLARE_PLUGIN(dump)
+{
+  .id = "dump",
+  .name = "dump",
+  .description = "Raw dump plugin",
+  .author = "Elie Roux <[EMAIL PROTECTED]>",
+
+  .type = GREGORIO_PLUGIN_OUTPUT,
+
+  .write = write_score
+};
+
+static void
 write_score (FILE * f, gregorio_score * score)
 {
   gregorio_syllable *syllable = score->first_syllable;
@@ -321,7 +334,7 @@ write_score (FILE * f, gregorio_score * score)
     }
 }
 
-const char *
+static const char *
 libgregorio_dump_style_to_string (unsigned char style)
 {
   switch (style)
@@ -356,7 +369,7 @@ libgregorio_dump_style_to_string (unsigned char style)
     }
 }
 
-void
+static void
 libgregorio_dump_write_characters (FILE * f,
                                   gregorio_character * current_character)
 {
@@ -388,7 +401,7 @@ libgregorio_dump_write_characters (FILE * f,
     }
 }
 
-const char *
+static const char *
 libgregorio_dump_key_to_char (int key)
 {
   const char *str;
@@ -426,7 +439,7 @@ libgregorio_dump_key_to_char (int key)
 }
 
 
-const char *
+static const char *
 libgregorio_dump_syllable_position (char pos)
 {
   const char *str;
@@ -452,7 +465,7 @@ libgregorio_dump_syllable_position (char pos)
 }
 
 
-const char *
+static const char *
 libgregorio_dump_type (char type)
 {
   const char *str;
@@ -499,7 +512,7 @@ libgregorio_dump_type (char type)
 }
 
 
-const char *
+static const char *
 libgregorio_dump_bar_type (char element_type)
 {
   const char *str;
@@ -531,7 +544,7 @@ libgregorio_dump_bar_type (char element_type)
 }
 
 
-const char *
+static const char *
 libgregorio_dump_space_type (char element_type)
 {
   const char *str;
@@ -564,7 +577,7 @@ libgregorio_dump_space_type (char element_type)
 
 
 // not so sure it has still a meaning now...
-const char *
+static const char *
 libgregorio_dump_element_type (char element_type)
 {
   const char *str;
@@ -607,7 +620,7 @@ libgregorio_dump_element_type (char element_type)
   return str;
 }
 
-const char *
+static const char *
 libgregorio_dump_liquescentia (char liquescentia)
 {
   const char *str;
@@ -649,7 +662,8 @@ libgregorio_dump_liquescentia (char liquescentia)
     }
   return str;
 }
-const char *
+
+static const char *
 libgregorio_dump_glyph_type (char glyph_type)
 {
   const char *str;
@@ -758,7 +772,7 @@ libgregorio_dump_glyph_type (char glyph_type)
   return str;
 }
 
-const char *
+static const char *
 libgregorio_dump_shape (char shape)
 {
   const char *str;
@@ -828,7 +842,7 @@ libgregorio_dump_shape (char shape)
   return str;
 }
 
-const char *
+static const char *
 libgregorio_dump_signs (char signs)
 {
   const char *str;
@@ -859,7 +873,7 @@ libgregorio_dump_signs (char signs)
   return str;
 }
 
-const char *
+static const char *
 libgregorio_dump_h_episemus_type (char h_episemus_type)
 {
   const char *str;
diff --git a/plugins/dump/dump.h b/plugins/dump/dump.h
index 4a805ae..4aad464 100644
--- a/plugins/dump/dump.h
+++ b/plugins/dump/dump.h
@@ -20,46 +20,46 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
MA  02110-1301, USA.
 #ifndef DUMP_H
 #define DUMP_H
 
-void
+static void
 write_score (FILE * f, gregorio_score * score);
 
-const char *
+static const char *
 libgregorio_dump_key_to_char(int key);
 
-const char *
+static const char *
 libgregorio_dump_syllable_position (char pos);
 
-const char *
+static const char *
 libgregorio_dump_type (char type);
 
-const char *
+static const char *
 libgregorio_dump_bar_type (char element_type);
 
-const char *
+static const char *
 libgregorio_dump_space_type (char element_type);
 
-const char *
+static const char *
 libgregorio_dump_element_type (char element_type);
 
-const char *
+static const char *
 libgregorio_dump_liquescentia (char liquescentia);
 
-const char *
+static const char *
 libgregorio_dump_glyph_type (char glyph_type);
 
-const char *
+static const char *
 libgregorio_dump_shape (char shape);
 
-const char *
+static const char *
 libgregorio_dump_signs (char signs);
 
-const char *
+static const char *
 libgregorio_dump_h_episemus_type (char h_episemus_type);
 
-void
+static void
 libgregorio_dump_write_characters (FILE * f, gregorio_character * 
current_character);
 
-const char *
+static const char *
 libgregorio_dump_style_to_string (unsigned char style);
 
 #endif
-- 
1.5.6.5


_______________________________________________
Gregorio-devel mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-devel

Répondre à