elm_calendar,elm_datetime: move struct tm typedefs to .eo files

Move elm_calendar and elm_datetime struct tm typedefs to theirs
respective .eo files.
Use Ecore.Time, an alias to struct tm, to refer to this type in the
.eo files.

Use namespaced names for these typedefs, in order to follow Eolian
standards.
This commit is contained in:
Vitor Sousa 2016-01-19 18:45:45 -02:00 committed by Felipe Magno de Almeida
parent 222f3704b3
commit e1881b05f4
4 changed files with 10 additions and 14 deletions

View File

@ -306,7 +306,7 @@ class Elm.Calendar (Elm.Layout, Elm.Interface_Atspi_Widget_Action)
\@ref calendar_example_04
]]
params {
@in selected_time: Elm_Calendar_Time *; [[A tm struct to represent the selected date.]]
@in selected_time: Efl.Time *; [[A tm struct to represent the selected date.]]
}
}
selected_time_get @const {
@ -323,7 +323,7 @@ class Elm.Calendar (Elm.Layout, Elm.Interface_Atspi_Widget_Action)
]]
return: bool;
params {
@inout selected_time: Elm_Calendar_Time; [[A tm struct to point to selected date.]]
@inout selected_time: Efl.Time; [[A tm struct to point to selected date.]]
}
}
mark_add {
@ -368,7 +368,7 @@ class Elm.Calendar (Elm.Layout, Elm.Interface_Atspi_Widget_Action)
@in mark_type: const(char)*; [[A string used to define the type of mark. It will be
emitted to the theme, that should display a related modification on these
days representation.]]
@in mark_time: Elm_Calendar_Time *; [[A time struct to represent the date of inclusion of the
@in mark_time: Efl.Time *; [[A time struct to represent the date of inclusion of the
mark. For marks that repeats it will just be displayed after the inclusion
date in the calendar.]]
@in repeat: Elm.Calendar.Mark.Repeat.Type; [[Repeat the event following this periodicity. Can be a unique
@ -425,7 +425,7 @@ class Elm.Calendar (Elm.Layout, Elm.Interface_Atspi_Widget_Action)
]]
return: bool;
params {
@inout displayed_time: Elm_Calendar_Time; [[A tm struct to point to displayed date.]]
@inout displayed_time: Efl.Time; [[A tm struct to point to displayed date.]]
}
}
}

View File

@ -15,8 +15,6 @@
*/
typedef char * (*Elm_Calendar_Format_Cb)(struct tm *stime);
/* temporary until better solution is found: is here because of eolian */
typedef struct tm Elm_Calendar_Time;
/**
* @}

View File

@ -151,7 +151,7 @@ class Elm.Datetime (Elm.Layout)
return: bool; [[$true if minimum value is accepted.]]
params {
@in mintime: const(Elm_Datetime_Time)*; [[Time structure containing the minimum time value.]]
@in mintime: const(Efl.Time)*; [[Time structure containing the minimum time value.]]
}
}
value_min_get @const {
@ -172,7 +172,7 @@ class Elm.Datetime (Elm.Layout)
]]
return: bool; [[$true if minimum value is successfully returned.]]
params {
@inout mintime: Elm_Datetime_Time; [[Time structure.]]
@inout mintime: Efl.Time; [[Time structure.]]
}
}
value_set {
@ -193,7 +193,7 @@ class Elm.Datetime (Elm.Layout)
]]
return: bool; [[$true if current time is set successfully.]]
params {
@in newtime: const(Elm_Datetime_Time)*; [[Time structure filled with values to be set.]]
@in newtime: const(Efl.Time)*; [[Time structure filled with values to be set.]]
}
}
value_get @const {
@ -214,7 +214,7 @@ class Elm.Datetime (Elm.Layout)
]]
return: bool; [[$true if current time is returned successfully.]]
params {
@inout currtime: Elm_Datetime_Time; [[Time structure.]]
@inout currtime: Efl.Time; [[Time structure.]]
}
}
field_visible_set {
@ -260,7 +260,7 @@ class Elm.Datetime (Elm.Layout)
]]
return: bool; [[$true if maximum value is accepted.]]
params {
@in maxtime: const(Elm_Datetime_Time)*; [[Time structure containing the maximum time value.]]
@in maxtime: const(Efl.Time)*; [[Time structure containing the maximum time value.]]
}
}
value_max_get @const {
@ -281,7 +281,7 @@ class Elm.Datetime (Elm.Layout)
]]
return: bool; [[$true if maximum value is returned successfully.]]
params {
@inout maxtime: Elm_Datetime_Time; [[Time structure containing the maximum time value.]]
@inout maxtime: Efl.Time; [[Time structure containing the maximum time value.]]
}
}
}

View File

@ -3,8 +3,6 @@
*
* @{
*/
/* temporary until better solution is found: is here because of eolian */
typedef struct tm Elm_Datetime_Time;
/**
* @}