blob: a24887d7fcadc6692d5eead59f9e9f5d32e7de47 [file] [log] [blame]
Jakub Grajciar7c5c40d2017-08-30 10:13:25 +02001/*
2 *------------------------------------------------------------------
3 * Copyright (c) 2017 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *------------------------------------------------------------------
16 */
17
18#ifndef _UNIT_TEST_H_
19#define _UNIT_TEST_H_
20
21#include <stdlib.h>
22#include <check.h>
23
Jakub Grajciarecfa2aa2018-03-26 11:26:34 +020024#include <memif.h>
Jakub Grajciar7c5c40d2017-08-30 10:13:25 +020025#include <libmemif.h>
26
27#define TEST_APP_NAME "unit_test_app"
28#define TEST_IF_NAME "unit_test_if"
29#define TEST_SECRET "psst"
30
31int on_connect (memif_conn_handle_t conn, void *ctx);
32
33int on_disconnect (memif_conn_handle_t conn, void *ctx);
34
35int on_interrupt (memif_conn_handle_t conn, void *ctx, uint16_t qid);
36
37int control_fd_update (int fd, uint8_t events);
38
39#endif /* _UNIT_TEST_H_ */