|
Document of c-modernization-kit (porter) 1.0.0
|
potrGetServiceType 関数の実装。 More...
Go to the source code of this file.
Functions | |
| POTR_EXPORT int POTR_API | potrGetServiceType (const char *config_path, int64_t service_id, PotrType *type) |
| 設定ファイルから指定サービスの通信種別を取得します。 | |
potrGetServiceType 関数の実装。
Definition in file potrGetServiceType.c.
| POTR_EXPORT int POTR_API potrGetServiceType | ( | const char * | config_path, |
| int64_t | service_id, | ||
| PotrType * | type ) |
設定ファイルから指定サービスの通信種別を取得します。
| [in] | config_path | 設定ファイルのパス。 |
| [in] | service_id | 照会するサービスの ID。 |
| [out] | type | 成功時に通信種別 (PotrType) を格納するポインタ。 |
設定ファイルを解析して指定サービスの通信種別を返します。
potrOpenService() の前に呼び出すことで、ロール・コールバックの要否を アプリケーション側で判断できます。
本関数はソケットの作成や通信スレッドの起動を行いません。
Definition at line 20 of file potrGetServiceType.c.
References config_load_service(), POTR_API, POTR_ERROR, POTR_EXPORT, POTR_SUCCESS, and PotrServiceDef::type.
Referenced by main().