SET(INC_DIR include)
INCLUDE_DIRECTORIES(${INC_DIR})
-SET(dependents "dlog glib-2.0 mm-common capi-media-tool iniparser bundle libtbm gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-app-1.0 gstreamer-video-1.0 cynara-client capi-system-info ecore elementary murphy-resource murphy-glib dpm capi-network-connection capi-content-mime-type libsoup-2.4")
-SET(pc_dependents "capi-base-common capi-media-tool gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-app-1.0 gstreamer-video-1.0 cynara-client capi-system-info ecore evas elementary murphy-resource murphy-glib dpm capi-system-info capi-network-connection capi-content-mime-type libsoup-2.4")
+SET(dependents "dlog glib-2.0 mm-common capi-media-tool iniparser bundle libtbm gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-app-1.0 gstreamer-video-1.0 cynara-client capi-system-info ecore elementary murphy-resource murphy-glib dpm capi-content-mime-type libsoup-2.4")
+SET(pc_dependents "capi-base-common capi-media-tool gstreamer-1.0 gstreamer-plugins-base-1.0 gstreamer-app-1.0 gstreamer-video-1.0 cynara-client capi-system-info ecore evas elementary murphy-resource murphy-glib dpm capi-system-info capi-content-mime-type libsoup-2.4")
INCLUDE(FindPkgConfig)
pkg_check_modules(${fw_name} REQUIRED ${dependents})
+++ /dev/null
-
-/*
- * Copyright (c) 2015 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.
- */
-
-#ifndef __MEDIA_STREAMER_NET_UTIL_H__
-#define __MEDIA_STREAMER_NET_UTIL_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-int __ms_get_local_network_address(char **ip_address);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __MEDIA_STREAMER_NET_UTIL_H__ */
BuildRequires: pkgconfig(murphy-resource)
BuildRequires: pkgconfig(murphy-glib)
BuildRequires: pkgconfig(dpm)
-BuildRequires: pkgconfig(capi-network-connection)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(capi-content-mime-type)
#include <media_streamer.h>
#include <media_streamer_util.h>
-#include <media_streamer_net_util.h>
#include <media_streamer_http_server.h>
+++ /dev/null
-/*
- * Copyright (c) 2015 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 <media_streamer.h>
-#include <media_streamer_util.h>
-#include <media_streamer_net_util.h>
-
-#include <net_connection.h>
-
-int __ms_get_local_network_address(char **ip_address)
-{
- connection_h conn = NULL;
- connection_type_e conn_type = CONNECTION_TYPE_DISCONNECTED;
-
- if (CONNECTION_ERROR_NONE != connection_create(&conn)) {
- ms_error("Failed to create connection");
- return MEDIA_STREAMER_ERROR_INVALID_OPERATION;
- }
-
- if (CONNECTION_ERROR_NONE != connection_get_type(conn, &conn_type)) {
- ms_error("Failed to acquire connection type");
- return MEDIA_STREAMER_ERROR_INVALID_OPERATION;
- }
-
- if (conn_type != CONNECTION_TYPE_WIFI) {
- ms_error("Wrong connection type");
- return MEDIA_STREAMER_ERROR_INVALID_OPERATION;
- }
-
- if (CONNECTION_ERROR_NONE != connection_get_ip_address(conn, CONNECTION_ADDRESS_FAMILY_IPV4, ip_address)) {
- ms_error("Failed to acquire connection ip address");
- return MEDIA_STREAMER_ERROR_INVALID_OPERATION;
- }
-
- return MEDIA_STREAMER_ERROR_NONE;
-}
#include <media_streamer_node.h>
#include <media_streamer_node_resources.h>
#include <media_streamer_node_policy.h>
-#include <media_streamer_net_util.h>
#include <media_streamer_util.h>
#include <media_streamer_gst.h>
#include <cynara-client.h>