summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/efl_net_session-none.c
blob: 15b8b28df07fc78fd9d9f7d5fbe4b573224d6df3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#include "Ecore.h"
#include "Ecore_Con.h"
#include "ecore_con_private.h"

typedef struct
{

} Efl_Net_Session_Data;

EOLIAN static void
_efl_net_session_efl_object_destructor(Eo *obj, Efl_Net_Session_Data *pd EINA_UNUSED)
{
   efl_destructor(efl_super(obj, EFL_NET_SESSION_CLASS));
}

EOLIAN static Efl_Object *
_efl_net_session_efl_object_constructor(Eo *obj, Efl_Net_Session_Data *pd EINA_UNUSED)
{
   INF("EFL compiled with --with-net-control=none");
   return efl_constructor(efl_super(obj, EFL_NET_SESSION_CLASS));
}

EOLIAN static Efl_Object *
_efl_net_session_efl_object_finalize(Eo *obj, Efl_Net_Session_Data *pd EINA_UNUSED)
{
   obj = efl_finalize(efl_super(obj, EFL_NET_SESSION_CLASS));
   efl_event_callback_call(obj, EFL_NET_SESSION_EVENT_CHANGED, NULL);
   return obj;
}

EOLIAN static const char *
_efl_net_session_network_name_get(Eo *obj EINA_UNUSED, Efl_Net_Session_Data *pd EINA_UNUSED)
{
   return NULL;
}

EOLIAN static Efl_Net_Session_State
_efl_net_session_state_get(Eo *obj EINA_UNUSED, Efl_Net_Session_Data *pd EINA_UNUSED)
{
   return EFL_NET_SESSION_STATE_ONLINE; /* best default for unsupported, hope we're online */
}

EOLIAN static Efl_Net_Session_Technology
_efl_net_session_technology_get(Eo *obj EINA_UNUSED, Efl_Net_Session_Data *pd EINA_UNUSED)
{
   return EFL_NET_SESSION_TECHNOLOGY_UNKNOWN;
}

EOLIAN static const char *
_efl_net_session_interface_get(Eo *obj EINA_UNUSED, Efl_Net_Session_Data *pd EINA_UNUSED)
{
   return NULL;
}

EOLIAN static void
_efl_net_session_ipv4_get(Eo *obj EINA_UNUSED, Efl_Net_Session_Data *pd EINA_UNUSED, const char **address, const char **netmask, const char **gateway)
{
   if (address) *address = NULL;
   if (netmask) *netmask = NULL;
   if (gateway) *gateway = NULL;
}

EOLIAN static void
_efl_net_session_ipv6_get(Eo *obj EINA_UNUSED, Efl_Net_Session_Data *pd EINA_UNUSED, const char **address, uint8_t *prefix_length, const char **netmask, const char **gateway)
{
   if (address) *address = NULL;
   if (prefix_length) *prefix_length = 0;
   if (netmask) *netmask = NULL;
   if (gateway) *gateway = NULL;
}

EOLIAN static void
_efl_net_session_connect(Eo *obj EINA_UNUSED, Efl_Net_Session_Data *pd EINA_UNUSED, Eina_Bool online_required EINA_UNUSED, Efl_Net_Session_Technology technologies_allowed EINA_UNUSED)
{
   INF("EFL compiled with --with-net-control=none, cannot connect.");
}

EOLIAN static void
_efl_net_session_disconnect(Eo *obj EINA_UNUSED, Efl_Net_Session_Data *pd EINA_UNUSED)
{
   INF("EFL compiled with --with-net-control=none, cannot disconnect.");
}

#include "efl_net_session.eo.c"