--- /dev/null
+/*
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Flora License, Version 1.1 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef LAP_COUNTER_H_
+#define LAP_COUNTER_H_
+
+int lap_counter_init();
+int lap_counter_set_user_name(const char *user_name);
+int lap_counter_shutdown();
+
+#endif //LAP_COUNTER_H_
--- /dev/null
+/*
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Flora License, Version 1.1 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include "lap_counter/lap_counter.h"
+#include <stdlib.h>
+#include <string.h>
+#include "log.h"
+
+typedef struct lap_counter_data {
+ const char *user_name;
+} lap_counter_data_t;
+
+static lap_counter_data_t s_info = {0, };
+
+int lap_counter_init()
+{
+ s_info.user_name = NULL;
+ return 0;
+}
+
+int lap_counter_set_user_name(const char *user_name)
+{
+ free((void*)s_info.user_name);
+ s_info.user_name = strdup(user_name);
+ if(!s_info.user_name) {
+ return -1;
+ }
+ _D("User name set to %s", s_info.user_name);
+ return 0;
+}
+
+int lap_counter_shutdown()
+{
+ free((void*)s_info.user_name);
+ return 0;
+}