2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include "toolkit-timer.h"
23 #include <dali/public-api/common/dali-common.h>
24 #include <dali/public-api/object/base-object.h>
25 #include <dali/public-api/signals/dali-signal-v2.h>
30 bool ecore_timer_running = false;
31 Ecore_Task_Cb timer_callback_func=NULL;
32 const void* timer_callback_data=NULL;
38 Ecore_Timer* ecore_timer_add(double in,
42 ecore_timer_running = true;
43 timer_callback_func = func;
44 timer_callback_data = data;
45 timerId += sizeof(Ecore_Timer*);
46 return (Ecore_Timer*)timerId;
49 void* ecore_timer_del(Ecore_Timer *timer)
51 ecore_timer_running = false;
52 timer_callback_func = NULL;