+++ /dev/null
-/*
- * Copyright (c) 2019-2020 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * 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 "utils.h"
-
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
-#include <glib.h>
-
-#include "common/mds.h"
-
-char* mds_utils_strdup(const char *src)
-{
- char *dest = NULL;
-
- RETV_IF(NULL == src, NULL);
-
- errno = 0;
- dest = strdup(src);
- if (NULL == dest) {
- ERR("strdup() Fail(%d)", errno);
- return NULL;
- }
-
- return dest;
-}
-
-
-const char* mds_utils_dbus_encode_str(const char *src)
-{
- return (src) ? src : MDS_STR_NULL;
-}
-
-
-char* mds_utils_dbus_decode_str(char *src)
-{
- RETV_IF(NULL == src, NULL);
-
- if (MDS_EQUAL == strcmp(MDS_STR_NULL, src))
- return NULL;
- else
- return src;
-}
-
-
-void mds_utils_gvariant_array_free(GVariant **value)
-{
- int i;
-
- for (i = 0; value[i]; i++)
- g_variant_unref(value[i]);
-
- free(value);
-}
+++ /dev/null
-/*
- * Copyright (c) 2019-2020 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * 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.
- */
-#pragma once
-
-#include <glib.h>
-
-#include "modes_types.h"
-
-#define MDS_STR_NULL "(NULL)"
-
-char* mds_utils_strdup(const char *src);
-const char* mds_utils_dbus_encode_str(const char *src);
-char* mds_utils_dbus_decode_str(char *src);
-void mds_utils_gvariant_array_free(GVariant **value);
-bool mds_utils_check_ofeature_supported();