summaryrefslogtreecommitdiff
path: root/src/bin/eolian/legacy_generator.h
blob: 0a69c969849e7f1e25d8ce9462f9a8519bceaf6f (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
35
36
#ifndef __EOLIAN_LEGACY_GENERATOR_H
#define __EOLIAN_LEGACY_GENERATOR_H

#include <Eina.h>

/*
 * @brief Generate legacy EAPI header for Eo class
 *
 * This function needs to be used in case we want to generate a function
 * from scratch.
 * There will not be respect of the order of the Eo Op Ids.
 *
 * @param[in] classname class name
 * @param[inout] buf buffer to fill
 *
 * @return EINA_TRUE on success, EINA_FALSE on error.
 *
 */
Eina_Bool legacy_header_generate(const Eolian_Class *class, Eina_Strbuf *buf);

/*
 * @brief Generate C source code for Eo class
 *
 * This function needs to be used to generate C source code. It is generating
 * 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 legacy_source_generate(const Eolian_Class *class, Eina_Strbuf *buf);

#endif