summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core/recipes-test/ipv6connect/ipv6connect.bb
blob: a8b93716a98be1f201d65d3906f875aa5a8b7284 (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
SUMMARY = "ipv6connect test"
HOMEPAGE = "https://chromium.googlesource.com/chromiumos/third_party/autotest/+/0.12.369.B/client/tests/ipv6connect"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${S}/${PN}/LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"

SRC_URI = "git://gerrit.automotivelinux.org/gerrit/src/qa-test-misc;protocol=https;branch=${AGL_BRANCH}"
SRCREV = "b355b7e1f43a19938895964f314484ffd8a39542"

inherit autotools

INSANE_SKIP_${PN} = "ldflags"

B = "${WORKDIR}/git/ipv6connect"
S = "${WORKDIR}/git"

# configure script is not delivered, only a makefile.
do_configure() {
    :
}

do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${B}/ipv6connect ${D}${bindir}
}
ass="o">*itf; /* the interface to use */ struct afb_eventid *closure; /* the closure argument for functions of 'itf' */ }; /* * Checks wether the 'event' is valid or not. * * Returns 0 if not valid or 1 if valid. */ static inline int afb_event_is_valid(struct afb_event event) { return !!event.itf; } /* * Broadcasts widely the 'event' with the data 'object'. * 'object' can be NULL. * * For convenience, the function calls 'json_object_put' for 'object'. * Thus, in the case where 'object' should remain available after * the function returns, the function 'json_object_get' shall be used. * * Returns the count of clients that received the event. */ static inline int afb_event_broadcast(struct afb_event event, struct json_object *object) { return event.itf->broadcast(event.closure, object); } /* * Pushes the 'event' with the data 'object' to its observers. * 'object' can be NULL. * * For convenience, the function calls 'json_object_put' for 'object'. * Thus, in the case where 'object' should remain available after * the function returns, the function 'json_object_get' shall be used. * * Returns the count of clients that received the event. */ static inline int afb_event_push(struct afb_event event, struct json_object *object) { return event.itf->push(event.closure, object); } /* OBSOLETE */ #define afb_event_drop afb_event_unref /* * Gets the name associated to the 'event'. */ static inline const char *afb_event_name(struct afb_event event) { return event.itf->name(event.closure); } /* * Decreases the count of reference to 'event' and * destroys the event when the reference count falls to zero. */ static inline void afb_event_unref(struct afb_event event) { event.itf->unref(event.closure); } /* * Increases the count of reference to 'event' */ static inline void afb_event_addref(struct afb_event event) { event.itf->addref(event.closure); }