Enlightenment CVS committal
Author : barbieri
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/canvas
Modified Files:
evas_main.c evas_object_image.c
Log Message:
Add const to Evas api, still lacks objects.
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_main.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- evas_main.c 8 Oct 2007 19:06:27 -0000 1.40
+++ evas_main.c 8 Feb 2008 20:44:09 -0000 1.41
@@ -246,7 +246,7 @@
* @ingroup Evas_Output_Method
*/
EAPI int
-evas_output_method_get(Evas *e)
+evas_output_method_get(const Evas *e)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return RENDER_METHOD_INVALID;
@@ -269,7 +269,7 @@
* @ingroup Evas_Output_Method
*/
EAPI Evas_Engine_Info *
-evas_engine_info_get(Evas *e)
+evas_engine_info_get(const Evas *e)
{
Evas_Engine_Info *info;
@@ -280,7 +280,7 @@
if (!e->engine.info) return NULL;
info = e->engine.info;
- e->engine.info_magic = info->magic;
+ ((Evas *)e)->engine.info_magic = info->magic;
return info;
}
@@ -370,7 +370,7 @@
* @ingroup Evas_Output_Size
*/
EAPI void
-evas_output_size_get(Evas *e, int *w, int *h)
+evas_output_size_get(const Evas *e, int *w, int *h)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
if (w) *w = 0;
@@ -450,7 +450,7 @@
* @endcode
*/
EAPI void
-evas_output_viewport_get(Evas *e, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w,
Evas_Coord *h)
+evas_output_viewport_get(const Evas *e, Evas_Coord *x, Evas_Coord *y,
Evas_Coord *w, Evas_Coord *h)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
if (x) *x = 0;
@@ -496,7 +496,7 @@
* @endcode
*/
EAPI Evas_Coord
-evas_coord_screen_x_to_world(Evas *e, int x)
+evas_coord_screen_x_to_world(const Evas *e, int x)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return 0;
@@ -528,7 +528,7 @@
* @endcode
*/
EAPI Evas_Coord
-evas_coord_screen_y_to_world(Evas *e, int y)
+evas_coord_screen_y_to_world(const Evas *e, int y)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return 0;
@@ -560,7 +560,7 @@
* @endcode
*/
EAPI int
-evas_coord_world_x_to_screen(Evas *e, Evas_Coord x)
+evas_coord_world_x_to_screen(const Evas *e, Evas_Coord x)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return 0;
@@ -592,7 +592,7 @@
* @endcode
*/
EAPI int
-evas_coord_world_y_to_screen(Evas *e, Evas_Coord y)
+evas_coord_world_y_to_screen(const Evas *e, Evas_Coord y)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return 0;
@@ -828,7 +828,7 @@
* @endcode
*/
EAPI void
-evas_pointer_output_xy_get(Evas *e, int *x, int *y)
+evas_pointer_output_xy_get(const Evas *e, int *x, int *y)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
if (x) *x = 0;
@@ -862,7 +862,7 @@
* @endcode
*/
EAPI void
-evas_pointer_canvas_xy_get(Evas *e, Evas_Coord *x, Evas_Coord *y)
+evas_pointer_canvas_xy_get(const Evas *e, Evas_Coord *x, Evas_Coord *y)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
if (x) *x = 0;
@@ -910,7 +910,7 @@
* @endcode
*/
EAPI int
-evas_pointer_button_down_mask_get(Evas *e)
+evas_pointer_button_down_mask_get(const Evas *e)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return 0;
@@ -946,7 +946,7 @@
* @endcode
*/
EAPI Evas_Bool
-evas_pointer_inside_get(Evas *e)
+evas_pointer_inside_get(const Evas *e)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return 0;
@@ -976,7 +976,7 @@
* @return The pointer attached
*/
EAPI void *
-evas_data_attach_get(Evas *e)
+evas_data_attach_get(const Evas *e)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return NULL;
===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_object_image.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -3 -r1.59 -r1.60
--- evas_object_image.c 5 Oct 2007 19:37:21 -0000 1.59
+++ evas_object_image.c 8 Feb 2008 20:44:09 -0000 1.60
@@ -1633,7 +1633,7 @@
*
*/
EAPI int
-evas_image_cache_get(Evas *e)
+evas_image_cache_get(const Evas *e)
{
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
return 0;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs