Last change
on this file since 474 was 397, checked in by Sanahuja Guillaume, 4 years ago |
add ipc lib
|
-
Property svn:eol-style
set to
native
|
File size:
992 bytes
|
Line | |
---|
1 | // %flair:license{
|
---|
2 | // This file is part of the Flair framework distributed under the
|
---|
3 | // CECILL-C License, Version 1.0.
|
---|
4 | // %flair:license}
|
---|
5 | // created: 2021/03/03
|
---|
6 | // filename: constructor.cpp
|
---|
7 | //
|
---|
8 | // author: Sébastien Ambroziak
|
---|
9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
10 | //
|
---|
11 | // version: $Id: $
|
---|
12 | //
|
---|
13 | // purpose: constructor for ipc lib
|
---|
14 | //
|
---|
15 | //
|
---|
16 | /*********************************************************************/
|
---|
17 |
|
---|
18 | #include <stdio.h>
|
---|
19 | #include <UavFactory.h>
|
---|
20 | #include "IpcX4.h"
|
---|
21 | #include "compile_info.h"
|
---|
22 |
|
---|
23 | static void constructor() __attribute__((constructor));
|
---|
24 |
|
---|
25 | using namespace std;
|
---|
26 | using namespace flair::core;
|
---|
27 | using namespace flair::filter;
|
---|
28 | using namespace flair::meta;
|
---|
29 |
|
---|
30 | Uav *CreateIpcX4(string name, string uav_type,string options,
|
---|
31 | UavMultiplex *multiplex) {
|
---|
32 | if(uav_type=="x4_ipc") {
|
---|
33 | return new IpcX4(name,options,multiplex);
|
---|
34 | } else {
|
---|
35 | return NULL;
|
---|
36 | }
|
---|
37 | }
|
---|
38 |
|
---|
39 | void constructor() {
|
---|
40 | compile_info("x4_ipc");
|
---|
41 | RegisterUavCreator(CreateIpcX4);
|
---|
42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.