summaryrefslogtreecommitdiff
path: root/reference
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-04-23 13:35:36 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-04-23 13:35:36 -0700
commit0448e6cfa48e4a69978356147c08b57091db36d6 (patch)
treefe035261947df52b89449225ab94ff415e0503d4 /reference
parentbc7793f138e6c84f5692be98ca70c9d9a3306ada (diff)
Update examples to latest EFL API
Summary: Some of the EFL tutorials are not currently building due to changes in the API : * const Eo* in getters. * Efl.Loop -> Efl.App * efl_net_session_name -> efl_net_session_network_name Reviewers: cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D5977
Diffstat (limited to 'reference')
-rw-r--r--reference/c/core/src/core_loop.c2
-rw-r--r--reference/c/net/src/net_session.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/reference/c/core/src/core_loop.c b/reference/c/core/src/core_loop.c
index 35116e84..0e7f545f 100644
--- a/reference/c/core/src/core_loop.c
+++ b/reference/c/core/src/core_loop.c
@@ -119,7 +119,7 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
119 Efl_Loop *loop; 119 Efl_Loop *loop;
120 120
121 loop = ev->object; 121 loop = ev->object;
122 version = efl_loop_efl_version_get(loop); 122 version = efl_app_efl_version_get(loop);
123 printf("Running on EFL version %d.%d.%d [%s]\n\n", version->major, version->minor, 123 printf("Running on EFL version %d.%d.%d [%s]\n\n", version->major, version->minor,
124 version->micro, version->build_id); 124 version->micro, version->build_id);
125 _print_loop(loop, "Application"); 125 _print_loop(loop, "Application");
diff --git a/reference/c/net/src/net_session.c b/reference/c/net/src/net_session.c
index 609d84b5..d08acb13 100644
--- a/reference/c/net/src/net_session.c
+++ b/reference/c/net/src/net_session.c
@@ -68,7 +68,7 @@ _session_changed(void *data EINA_UNUSED, const Efl_Event *event)
68 " state: %s\n" 68 " state: %s\n"
69 " technology: %s\n" 69 " technology: %s\n"
70 " interface: '%s'\n", 70 " interface: '%s'\n",
71 efl_net_session_name_get(session), 71 efl_net_session_network_name_get(session),
72 _state_name(efl_net_session_state_get(session)), 72 _state_name(efl_net_session_state_get(session)),
73 _technology_name(efl_net_session_technology_get(session)), 73 _technology_name(efl_net_session_technology_get(session)),
74 efl_net_session_interface_get(session)); 74 efl_net_session_interface_get(session));