GCS  0.2.3
gcs_dummy.h
1 /*
2  * Copyright (C) 2008-2014 Codership Oy <info@codership.com>
3  *
4  * $Id: gcs_dummy.h 3455 2014-02-01 18:11:09Z alex $
5  */
6 /*
7  * Dummy backend specification
8  */
9 
10 #ifndef _gcs_dummy_h_
11 #define _gcs_dummy_h_
12 
13 #include "gcs_backend.h"
14 #include "gcs_comp_msg.h"
15 
16 extern GCS_BACKEND_REGISTER_FN (gcs_dummy_register);
17 
18 extern GCS_BACKEND_CREATE_FN (gcs_dummy_create);
19 
20 #ifdef GCS_DUMMY_TESTING
21 
22 /*
23  * What follows is an API for unit testing
24  */
25 
27 extern long
28 gcs_dummy_inject_msg (gcs_backend_t* backend,
29  const void* msg,
30  size_t len,
31  gcs_msg_type_t type,
32  long sender_idx);
33 
37 extern long
38 gcs_dummy_set_component (gcs_backend_t* backend,
39  const gcs_comp_msg_t* comp);
40 
42 extern long
43 gcs_dummy_set_transitional (gcs_backend_t* backend);
44 
45 #endif /* GCS_DUMMY_TESTING */
46 
47 #endif /* _gcs_dummy_h_ */
Definition: gcs_backend.h:164