summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-ti/recipes-arago/gstreamer/gstreamer1.0-plugins-bad_1.6.3.bbappend
blob: bfcd750366f212c213e61bd92f88b7850fec9389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

PACKAGECONFIG = "faad"

# gstreamer is now also included on Keystone, be mindful of any Graphics dependencies
PACKAGECONFIG_append_omap-a15 = " ${@bb.utils.contains('DISTRO_FEATURES','wayland','wayland','',d)}"
PACKAGECONFIG_append_ti43x = " ${@bb.utils.contains('DISTRO_FEATURES','wayland','wayland','',d)}"
PACKAGECONFIG_append_ti33x = " ${@bb.utils.contains('DISTRO_FEATURES','wayland','wayland','',d)}"

DEPENDS_append_omap-a15 = " \
    libdce \
    libdrm \
"

DEPENDS_append_ti43x = " \
    libdrm \
"

DEPENDS_append_ti33x = " \
    libdrm \
"

SRC_URI_append_ti43x = " \
"

SRC_URI_append_ti33x = " \
"

PACKAGE_ARCH = "${MACHINE_ARCH}"

BRANCH ?= "master"

SRC_URI = "git://git.ti.com/glsdk/gstreamer1-0-plugins-bad.git;protocol=git;branch=${BRANCH} \
          "

S = "${WORKDIR}/git"

SRCREV_omap-a15 = "f0694b5fcec997036ef7df4d382b28e833c8ebfd"
SRCREV = "d0160ca810be30bf2b2e7681f5047933402efb52"

PR = "r21"
THOUT 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 <unistd.h> #include <string> #include <linux/can/raw.h> #include <net/if.h> #include <sys/ioctl.h> #include "socketcan.hpp" namespace utils { /// @brief Construct a default, invalid, socket. socketcan_t::socketcan_t() : socket_{INVALID_SOCKET} {} /// @brief Construct a socket by moving an existing one. socketcan_t::socketcan_t(socketcan_t&& s) : socket_{s.socket_} {} socketcan_t& socketcan_t::operator=(const socketcan_t& s) { socket_ = std::move(s.socket_); return *this; } socketcan_t::~socketcan_t() {} const struct sockaddr_can& socketcan_t::get_tx_address() const { return tx_address_; } /// @brief Test if socket is valid. /// @return true if valid, false otherwise. socketcan_t::operator bool() const { return socket_ != INVALID_SOCKET; } /// @brief Open the socket. /// @param[in] domain Specifies the communications domain in which a socket is to be created. /// @param[in] type Specifies the type of socket to be created. /// @param[in] protocol Specifies a particular protocol to be used with the socket. Specifying a protocol of 0 causes socket() to use an unspecified default protocol appropriate for the requested socket type. /// @return Upon successful completion, shall return a non-negative integer, the socket file descriptor. Otherwise, a value of -1 shall be returned and errno set to indicate the error. int socketcan_t::open(int domain, int type, int protocol) { close(); socket_ = ::socket(domain, type, protocol); return socket_; } /// @brief Close the socket. /// @return 0 if success. int socketcan_t::close() { return socket_ != INVALID_SOCKET ? ::close(socket_) : 0; } /// @brief Set socket option. /// @return 0 if success. int socketcan_t::setopt(int level, int optname, const void* optval, socklen_t optlen) { return socket_ != INVALID_SOCKET ? ::setsockopt(socket_, level, optname, optval, optlen) : 0; } /// @brief Get the file descriptor. /// @return The socket's file descriptor int socketcan_t::socket() const { return socket_; } }