summaryrefslogtreecommitdiff
path: root/src/bin/eolian/eo_generator.h
blob: fc47a7b8ca1d7f77d98ffe397bcfeccc0c4f27a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef EO1_GENERATOR_H
#define EO1_GENERATOR_H

#include<Eina.h>

/*
 * @brief Generate Eo source code for Eo class
 *
 * This function generates all the source code for Eo.
 *
 * @param[in] classname class name
 * @param[inout] buf buffer to fill
 *
 * @return EINA_TRUE on success, EINA_FALSE on error.
 *
 */
Eina_Bool
eo_source_generate(const Eolian_Class *class, Eina_Strbuf *buf);

/*
 * @brief Generate the header code for a specific Eo class.
 *
 * This function generates header code from scratch.
 *
 * @param[in] classname class name
 * @param[inout] buf buffer to fill
 *
 * @return EINA_TRUE on success, EINA_FALSE on error.
 *
 */
Eina_Bool eo_header_generate(const Eolian_Class *class, Eina_Strbuf *buf);

#endif