summaryrefslogblamecommitdiff
path: root/src/bin/eolian/legacy_generator.h
blob: 0a69c969849e7f1e25d8ce9462f9a8519bceaf6f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                        




                                                     
                                                                              

  





                                                                             




                                                     
                                                                              


      
#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