[101] | 1 | /*
|
---|
| 2 | * TOPPERS ECHONET Lite Communication Middleware
|
---|
| 3 | *
|
---|
| 4 | * Copyright (C) 2015 Cores Co., Ltd. Japan
|
---|
| 5 | *
|
---|
| 6 | * 上記著作権者は,以下の(1)〜(4)の条件を満たす場合に限り,本ソフトウェ
|
---|
| 7 | * ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改
|
---|
| 8 | * 変・再配布(以下,利用と呼ぶ)することを無償で許諾する.
|
---|
| 9 | * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
|
---|
| 10 | * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
|
---|
| 11 | * スコード中に含まれていること.
|
---|
| 12 | * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
|
---|
| 13 | * 用できる形で再配布する場合には,再配布に伴うドキュメント(利用
|
---|
| 14 | * 者マニュアルなど)に,上記の著作権表示,この利用条件および下記
|
---|
| 15 | * の無保証規定を掲載すること.
|
---|
| 16 | * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
|
---|
| 17 | * 用できない形で再配布する場合には,次のいずれかの条件を満たすこ
|
---|
| 18 | * と.
|
---|
| 19 | * (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著
|
---|
| 20 | * 作権表示,この利用条件および下記の無保証規定を掲載すること.
|
---|
| 21 | * (b) 再配布の形態を,別に定める方法によって,TOPPERSプロジェクトに
|
---|
| 22 | * 報告すること.
|
---|
| 23 | * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
|
---|
| 24 | * 害からも,上記著作権者およびTOPPERSプロジェクトを免責すること.
|
---|
| 25 | * また,本ソフトウェアのユーザまたはエンドユーザからのいかなる理
|
---|
| 26 | * 由に基づく請求からも,上記著作権者およびTOPPERSプロジェクトを
|
---|
| 27 | * 免責すること.
|
---|
| 28 | *
|
---|
| 29 | * 本ソフトウェアは,無保証で提供されているものである.上記著作権者お
|
---|
| 30 | * よびTOPPERSプロジェクトは,本ソフトウェアに関して,特定の使用目的
|
---|
| 31 | * に対する適合性も含めて,いかなる保証も行わない.また,本ソフトウェ
|
---|
| 32 | * アの利用により直接的または間接的に生じたいかなる損害に関しても,そ
|
---|
| 33 | * の責任を負わない.
|
---|
| 34 | *
|
---|
| 35 | * @(#) $Id: wamp_caller.h 107 2015-06-10 11:40:31Z coas-nagasima $
|
---|
| 36 | */
|
---|
| 37 |
|
---|
| 38 | #ifndef WAMP_CALLER_H
|
---|
| 39 | #define WAMP_CALLER_H
|
---|
| 40 |
|
---|
| 41 | typedef struct wamp_caller
|
---|
| 42 | {
|
---|
| 43 | struct wamp_state *s;
|
---|
| 44 | int id;
|
---|
| 45 | } wamp_caller_t;
|
---|
| 46 |
|
---|
| 47 | void wamp_caller_result(wamp_caller_t *caller);
|
---|
| 48 | void wamp_caller_result_request_id(wamp_caller_t *s, const char *value);
|
---|
| 49 | void wamp_caller_result_details(wamp_caller_t *s, const char *value);
|
---|
| 50 | void wamp_caller_result_details_param(wamp_caller_t *s, jsonsl_action_t action,
|
---|
| 51 | struct jsonsl_state_st *state, const char *buf);
|
---|
| 52 | void wamp_caller_result_arguments(wamp_caller_t *s, const char *value);
|
---|
| 53 | void wamp_caller_result_arguments_param(wamp_caller_t *s, jsonsl_action_t action,
|
---|
| 54 | struct jsonsl_state_st *state, const char *buf);
|
---|
| 55 | void wamp_caller_result_argumentskw(wamp_caller_t *s, const char *value);
|
---|
| 56 | void wamp_caller_result_argumentskw_param(wamp_caller_t *s, jsonsl_action_t action,
|
---|
| 57 | struct jsonsl_state_st *state, const char *buf);
|
---|
| 58 | void wamp_caller_result_close(struct wamp_state *s);
|
---|
| 59 |
|
---|
| 60 | #endif // WAMP_CALLER_H
|
---|