INGOR
Loading...
Searching...
No Matches
ytIO.h
1/*
2 io/ytIO.{h,c} : IO utility functions
3 Copyright (C) 2018, Yoshinori Tamada <tamada A T ytlab.jp>
4 All rights reserved.
5
6 See LICENSE.txt for details of the licensing agreement.
7*/
8#ifndef __YTLIB_IO_H
9#define __YTLIB_IO_H
10
11#include "net/ytNetwork.h"
12#include "util/ytKeyValues.h"
13
14typedef void (* ytIO_writer)(FILE *, const ytNetwork *, const ytKeyValues *);
15typedef ytNetwork * (* ytIO_reader)(FILE *, const ytKeyValues *);
16
17#define ytIO_MODE_NONE 0
18#define ytIO_MODE_ERROR 1
19#define ytIO_MODE_WARNING 2
20
21ytIO_writer ytIO_getWriter(const char * name);
22ytIO_writer ytIO_getWriterMsg(const char * name, int mode, const char * module);
23ytIO_reader ytIO_getReader(const char * name);
24
25#endif /* __YTLIB_IO_H */
key-value pairs.
Network abstraction.