comparison Plugins/OrthancCPlugin/OrthancCPlugin.h @ 906:cbc0ea03dffe plugins

sample plugin configuration
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 19 Jun 2014 13:37:49 +0200
parents 2732b5f57d9c
children 9b8298234254
comparison
equal deleted inserted replaced
905:89e3cc078df0 906:cbc0ea03dffe
1 /**
2 * \mainpage
3 *
4 * This SDK allows external developers to create plugins that can be
5 * loaded into Orthanc to extend its functionality. Each Orthanc
6 * plugin must expose 4 public functions with the following
7 * signatures:
8 *
9 * - <tt>int32_t OrthancPluginInitialize(const OrthancPluginContext*)</tt>:
10 * This function is invoked by Orthanc
11 * - <tt>void OrthancPluginFinalize()</tt>
12 * - <tt>const char* OrthancPluginGetName()</tt>
13 * - <tt>const char* OrthancPluginGetVersion()</tt>
14 **/
15
16
17
1 /** 18 /**
2 * @defgroup CInterface C Interface 19 * @defgroup CInterface C Interface
3 * @brief The C interface to create Orthanc plugins. 20 * @brief The C interface to create Orthanc plugins.
4 * 21 *
5 * These functions must be used to create C plugins for Orthanc. 22 * These functions must be used to create C plugins for Orthanc.
6 **/ 23 **/
24
7 25
8 26
9 /** 27 /**
10 * Orthanc - A Lightweight, RESTful DICOM Store 28 * Orthanc - A Lightweight, RESTful DICOM Store
11 * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege, 29 * Copyright (C) 2012-2014 Medical Physics Department, CHU of Liege,
36 * You should have received a copy of the GNU General Public License 54 * You should have received a copy of the GNU General Public License
37 * along with this program. If not, see <http://www.gnu.org/licenses/>. 55 * along with this program. If not, see <http://www.gnu.org/licenses/>.
38 **/ 56 **/
39 57
40 58
59
41 #pragma once 60 #pragma once
42 61
43 62
44 #include <stdio.h> 63 #include <stdio.h>
45 #include <string.h> 64 #include <string.h>
360 params.instanceId = instanceId; 379 params.instanceId = instanceId;
361 return context->InvokeService(context, OrthancPluginService_GetDicomForInstance, &params); 380 return context->InvokeService(context, OrthancPluginService_GetDicomForInstance, &params);
362 } 381 }
363 382
364 383
365 /**
366 Each plugin must define 4 functions, whose signature are:
367 - int32_t OrthancPluginInitialize(const OrthancPluginContext*);
368 - void OrthancPluginFinalize();
369 - const char* OrthancPluginGetName();
370 - const char* OrthancPluginGetVersion();
371
372 nm -C -D --defined-only libPluginTest.so
373 **/
374
375 #ifdef __cplusplus 384 #ifdef __cplusplus
376 } 385 }
377 #endif 386 #endif
378 387
379 388