[BACK]Return to ml.h CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Annotation of mandoc/ml.h, Revision 1.1

1.1     ! kristaps    1: /* $Id: private.h,v 1.23 2008/12/02 18:26:57 kristaps Exp $ */
        !             2: /*
        !             3:  * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
        !             4:  *
        !             5:  * Permission to use, copy, modify, and distribute this software for any
        !             6:  * purpose with or without fee is hereby granted, provided that the
        !             7:  * above copyright notice and this permission notice appear in all
        !             8:  * copies.
        !             9:  *
        !            10:  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
        !            11:  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
        !            12:  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
        !            13:  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
        !            14:  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
        !            15:  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
        !            16:  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
        !            17:  * PERFORMANCE OF THIS SOFTWARE.
        !            18:  */
        !            19: #ifndef ML_H
        !            20: #define ML_H
        !            21:
        !            22: struct md_mlg;
        !            23:
        !            24: enum   md_ns {
        !            25:        MD_NS_BLOCK,
        !            26:        MD_NS_INLINE,
        !            27:        MD_NS_DEFAULT,
        !            28: };
        !            29:
        !            30: typedef        ssize_t (*ml_endtag)(struct md_mbuf *,
        !            31:                const struct md_args *, enum md_ns, int);
        !            32: typedef        ssize_t (*ml_begintag)(struct md_mbuf *,
        !            33:                const struct md_args *, enum md_ns, int,
        !            34:                const int *, const char **);
        !            35:
        !            36:
        !            37: __BEGIN_DECLS
        !            38:
        !            39: int              ml_nputstring(struct md_mbuf *,
        !            40:                        const char *, size_t, size_t *);
        !            41: int              ml_nputs(struct md_mbuf *,
        !            42:                        const char *, size_t, size_t *);
        !            43: int              ml_putchars(struct md_mbuf *,
        !            44:                        char, size_t, size_t *);
        !            45:
        !            46: struct md_mlg   *mlg_alloc(const struct md_args *,
        !            47:                        const struct md_rbuf *, struct md_mbuf *,
        !            48:                        ml_begintag, ml_endtag);
        !            49: int              mlg_exit(struct md_mlg *, int);
        !            50: int              mlg_line(struct md_mlg *, char *);
        !            51:
        !            52: __END_DECLS
        !            53:
        !            54: #endif /*!ML_H*/

CVSweb