2014-11-04 14:21:49 -08:00
|
|
|
#ifndef ELM_CODE_COMMON_H_
|
|
|
|
# define ELM_CODE_COMMON_H_
|
|
|
|
|
2014-11-09 13:53:30 -08:00
|
|
|
#include <Eo.h>
|
2014-11-04 14:21:49 -08:00
|
|
|
#include <Eina.h>
|
|
|
|
|
2014-11-09 13:53:30 -08:00
|
|
|
EAPI extern const Eo_Event_Description ELM_CODE_EVENT_LINE_SET_DONE;
|
2014-11-12 14:59:05 -08:00
|
|
|
EAPI extern const Eo_Event_Description ELM_CODE_EVENT_FILE_LOAD_DONE;
|
2014-11-06 15:43:56 -08:00
|
|
|
|
2014-11-04 16:01:28 -08:00
|
|
|
typedef enum {
|
|
|
|
ELM_CODE_STATUS_TYPE_DEFAULT = 0,
|
|
|
|
ELM_CODE_STATUS_TYPE_ERROR,
|
|
|
|
|
2014-11-09 06:44:35 -08:00
|
|
|
ELM_CODE_STATUS_TYPE_ADDED,
|
|
|
|
ELM_CODE_STATUS_TYPE_REMOVED,
|
|
|
|
ELM_CODE_STATUS_TYPE_CHANGED,
|
|
|
|
|
2014-11-04 16:01:28 -08:00
|
|
|
ELM_CODE_STATUS_TYPE_COUNT
|
|
|
|
} Elm_Code_Status_Type;
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
ELM_CODE_TOKEN_TYPE_DEFAULT = ELM_CODE_STATUS_TYPE_COUNT,
|
|
|
|
|
|
|
|
ELM_CODE_TOKEN_TYPE_COUNT
|
|
|
|
} Elm_Code_Token_Type;
|
|
|
|
|
2014-11-04 14:21:49 -08:00
|
|
|
#include "elm_code_file.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2014-11-06 15:43:56 -08:00
|
|
|
|
|
|
|
|
2014-11-04 14:21:49 -08:00
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Common data structures and constants.
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct _Elm_Code
|
|
|
|
{
|
|
|
|
Elm_Code_File *file;
|
|
|
|
Eina_List *widgets;
|
|
|
|
} Elm_Code;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* ELM_CODE_COMMON_H_ */
|