Don't include Edje_Edit.h in edje_private.h and make it obvious at compile time that this API is not meant to be used outside of editors.

SVN revision: 52593
This commit is contained in:
Iván Briano 2010-09-22 14:52:23 +00:00
parent 79f5d9f04d
commit 14187a92d3
3 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,10 @@
#ifndef _EDJE_EDIT_H
#define _EDJE_EDIT_H
#ifndef EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT
#error "Do not use the Edje_Edit API unless you know what you are doing. It's meant only for writing editors and nothing else."
#endif
#include <Edje.h>
#ifdef EAPI

View File

@ -30,6 +30,9 @@
#include "edje_private.h"
#define EDJE_EDIT_IS_UNSTABLE_AND_I_KNOW_ABOUT_IT
#include "Edje_Edit.h"
static const char EDJE_EDIT_ERROR_GROUP_CURRENTLY_USED_STR[] = "Current group cannot be deleted";
static const char EDJE_EDIT_ERROR_GROUP_REFERENCED_STR[] = "Group still in use";
static const char EDJE_EDIT_ERROR_GROUP_DOES_NOT_EXIST_STR[] = "Group does not exist";

View File

@ -35,7 +35,6 @@ void *alloca (size_t);
#include <sys/time.h>
#include "Edje.h"
#include "Edje_Edit.h"
#include <lua.h>
#include <lualib.h>