X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=babel%2Fifiction.h;fp=babel%2Fifiction.h;h=0000000000000000000000000000000000000000;hb=8be24a16f55049419bd9481f1918729f269e56dc;hp=75ae946ce14db5a6537b51ead3c7559faa41b9cf;hpb=dc9213af8972055ee54bdee4cced6103e1432010;p=projects%2Fchimara%2Fchimara.git diff --git a/babel/ifiction.h b/babel/ifiction.h deleted file mode 100644 index 75ae946..0000000 --- a/babel/ifiction.h +++ /dev/null @@ -1,45 +0,0 @@ -/* ifiction.h declarations for the babel ifiction API - * (c) 2006 By L. Ross Raszewski - * - * This code is freely usable for all purposes. - * - * This work is licensed under the Creative Commons Attribution2.5 License. - * To view a copy of this license, visit - * http://creativecommons.org/licenses/by/2.5/ or send a letter to - * Creative Commons, - * 543 Howard Street, 5th Floor, - * San Francisco, California, 94105, USA. - * - */ - -#ifndef IFICTION_H -#define IFICTION_H - -#include "treaty.h" - -/* Babel's notion of an XML tag */ -struct XMLTag -{ - int32 beginl; /* Beginning line number */ - char tag[256]; /* name of the tag */ - char fulltag[256]; /* Full text of the opening tag */ - char *begin; /* Points to the beginning of the tag's content */ - char *end; /* Points to the end of the tag's content. - setting *end=0 will turn begin into a string - containing the tag's content (But if you do this, you - should restore the original value of *end before - allowing control to return to the ifiction parser) */ - char occurences[256]; /* Tables used internally to find missing required tags */ - char rocurrences[256]; - struct XMLTag *next; /* The tag's parent */ - -}; - -typedef void (*IFCloseTag)(struct XMLTag *, void *); -typedef void (*IFErrorHandler)(char *, void *); - - -void ifiction_parse(char *md, IFCloseTag close_tag, void *close_ctx, IFErrorHandler error_handler, void *error_ctx); -int32 ifiction_get_IFID(char *metadata, char *output, int32 output_extent); -char *ifiction_get_tag(char *md, char *p, char *t, char *from); -#endif