Mercurial > louis > mq > lightsd
changeset 198:5609a782e502
add missing file
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Sun, 19 Jul 2015 16:14:17 -0700 |
parents | e3488126729c |
children | 55031f07152b |
files | tag_untag_testing_wip.patch |
diffstat | 1 files changed, 34 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tag_untag_testing_wip.patch Sun Jul 19 02:21:45 2015 -0700 +++ b/tag_untag_testing_wip.patch Sun Jul 19 16:14:17 2015 -0700 @@ -604,3 +604,37 @@ void lgtd_lifx_gateway_update_tag_refcounts(struct lgtd_lifx_gateway *gw, uint64_t bulb_tags, +diff --git a/tests/core/tests_shims.h b/tests/core/tests_shims.h +new file mode 100644 +--- /dev/null ++++ b/tests/core/tests_shims.h +@@ -0,0 +1,29 @@ ++#pragma once ++ ++#ifndef MOCKED_LIFX_GATEWAY_SEND_TO_SITE ++bool ++lgtd_lifx_gateway_send_to_site(struct lgtd_lifx_gateway *gw, ++ enum lgtd_lifx_packet_type pkt_type, ++ const void *pkt, ++ int pkt_size) ++{ ++ (void)gw; ++ (void)pkt_type; ++ (void)pkt; ++ (void)pkt_size; ++ return false; ++} ++#endif ++ ++#ifndef MOCKED_LIFX_GATEWAY_ALLOCATE_TAG_ID ++int ++lgtd_lifx_gateway_allocate_tag_id(struct lgtd_lifx_gateway *gw, ++ int tag_id, ++ const char *tag_label) ++{ ++ (void)gw; ++ (void)tag_id; ++ (void)tag_label; ++ return -1; ++} ++#endif