2013-04-07 16:58:26 +08:00
|
|
|
#ifndef __pluginx_protocols_h__
|
|
|
|
#define __pluginx_protocols_h__
|
|
|
|
|
|
|
|
#include "jsapi.h"
|
|
|
|
#include "jsfriendapi.h"
|
|
|
|
|
|
|
|
|
|
|
|
extern JSClass *jsb_PluginProtocol_class;
|
|
|
|
extern JSObject *jsb_PluginProtocol_prototype;
|
|
|
|
|
|
|
|
JSBool js_pluginx_protocols_PluginProtocol_constructor(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
void js_pluginx_protocols_PluginProtocol_finalize(JSContext *cx, JSObject *obj);
|
|
|
|
void js_register_pluginx_protocols_PluginProtocol(JSContext *cx, JSObject *global);
|
|
|
|
void register_all_pluginx_protocols(JSContext* cx, JSObject* obj);
|
|
|
|
JSBool js_pluginx_protocols_PluginProtocol_getPluginName(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_PluginProtocol_getPluginVersion(JSContext *cx, uint32_t argc, jsval *vp);
|
2013-06-04 10:06:16 +08:00
|
|
|
JSBool js_pluginx_protocols_PluginProtocol_getSDKVersion(JSContext *cx, uint32_t argc, jsval *vp);
|
2013-04-07 16:58:26 +08:00
|
|
|
JSBool js_pluginx_protocols_PluginProtocol_setDebugMode(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
|
|
|
|
extern JSClass *jsb_PluginManager_class;
|
|
|
|
extern JSObject *jsb_PluginManager_prototype;
|
|
|
|
|
|
|
|
JSBool js_pluginx_protocols_PluginManager_constructor(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
void js_pluginx_protocols_PluginManager_finalize(JSContext *cx, JSObject *obj);
|
|
|
|
void js_register_pluginx_protocols_PluginManager(JSContext *cx, JSObject *global);
|
|
|
|
void register_all_pluginx_protocols(JSContext* cx, JSObject* obj);
|
|
|
|
JSBool js_pluginx_protocols_PluginManager_unloadPlugin(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_PluginManager_loadPlugin(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_PluginManager_end(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_PluginManager_getInstance(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
|
|
|
|
extern JSClass *jsb_ProtocolAnalytics_class;
|
|
|
|
extern JSObject *jsb_ProtocolAnalytics_prototype;
|
|
|
|
|
|
|
|
JSBool js_pluginx_protocols_ProtocolAnalytics_constructor(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
void js_pluginx_protocols_ProtocolAnalytics_finalize(JSContext *cx, JSObject *obj);
|
|
|
|
void js_register_pluginx_protocols_ProtocolAnalytics(JSContext *cx, JSObject *global);
|
|
|
|
void register_all_pluginx_protocols(JSContext* cx, JSObject* obj);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolAnalytics_logTimedEventBegin(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolAnalytics_logError(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolAnalytics_setCaptureUncaughtException(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolAnalytics_setSessionContinueMillis(JSContext *cx, uint32_t argc, jsval *vp);
|
2013-06-04 10:06:16 +08:00
|
|
|
JSBool js_pluginx_protocols_ProtocolAnalytics_logEvent(JSContext *cx, uint32_t argc, jsval *vp);
|
2013-04-07 16:58:26 +08:00
|
|
|
JSBool js_pluginx_protocols_ProtocolAnalytics_startSession(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolAnalytics_stopSession(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolAnalytics_logTimedEventEnd(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
|
|
|
|
extern JSClass *jsb_ProtocolIAP_class;
|
|
|
|
extern JSObject *jsb_ProtocolIAP_prototype;
|
|
|
|
|
|
|
|
JSBool js_pluginx_protocols_ProtocolIAP_constructor(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
void js_pluginx_protocols_ProtocolIAP_finalize(JSContext *cx, JSObject *obj);
|
|
|
|
void js_register_pluginx_protocols_ProtocolIAP(JSContext *cx, JSObject *global);
|
|
|
|
void register_all_pluginx_protocols(JSContext* cx, JSObject* obj);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolIAP_payForProduct(JSContext *cx, uint32_t argc, jsval *vp);
|
2013-04-27 11:32:12 +08:00
|
|
|
JSBool js_pluginx_protocols_ProtocolIAP_onPayResult(JSContext *cx, uint32_t argc, jsval *vp);
|
2013-06-04 10:06:16 +08:00
|
|
|
JSBool js_pluginx_protocols_ProtocolIAP_configDeveloperInfo(JSContext *cx, uint32_t argc, jsval *vp);
|
2013-04-07 16:58:26 +08:00
|
|
|
|
2013-04-24 09:43:40 +08:00
|
|
|
extern JSClass *jsb_ProtocolAds_class;
|
|
|
|
extern JSObject *jsb_ProtocolAds_prototype;
|
2013-04-07 16:58:26 +08:00
|
|
|
|
2013-04-24 09:43:40 +08:00
|
|
|
JSBool js_pluginx_protocols_ProtocolAds_constructor(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
void js_pluginx_protocols_ProtocolAds_finalize(JSContext *cx, JSObject *obj);
|
|
|
|
void js_register_pluginx_protocols_ProtocolAds(JSContext *cx, JSObject *global);
|
2013-04-07 16:58:26 +08:00
|
|
|
void register_all_pluginx_protocols(JSContext* cx, JSObject* obj);
|
2013-04-27 11:32:12 +08:00
|
|
|
JSBool js_pluginx_protocols_ProtocolAds_showAds(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolAds_hideAds(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolAds_configDeveloperInfo(JSContext *cx, uint32_t argc, jsval *vp);
|
2013-06-04 10:06:16 +08:00
|
|
|
JSBool js_pluginx_protocols_ProtocolAds_spendPoints(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolAds_onAdsResult(JSContext *cx, uint32_t argc, jsval *vp);
|
2013-04-27 11:32:12 +08:00
|
|
|
JSBool js_pluginx_protocols_ProtocolAds_onPlayerGetPoints(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
|
|
|
|
extern JSClass *jsb_ProtocolSocial_class;
|
|
|
|
extern JSObject *jsb_ProtocolSocial_prototype;
|
|
|
|
|
|
|
|
JSBool js_pluginx_protocols_ProtocolSocial_constructor(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
void js_pluginx_protocols_ProtocolSocial_finalize(JSContext *cx, JSObject *obj);
|
|
|
|
void js_register_pluginx_protocols_ProtocolSocial(JSContext *cx, JSObject *global);
|
|
|
|
void register_all_pluginx_protocols(JSContext* cx, JSObject* obj);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolSocial_onShareResult(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolSocial_share(JSContext *cx, uint32_t argc, jsval *vp);
|
|
|
|
JSBool js_pluginx_protocols_ProtocolSocial_configDeveloperInfo(JSContext *cx, uint32_t argc, jsval *vp);
|
2013-04-07 16:58:26 +08:00
|
|
|
#endif
|
|
|
|
|