diff options
Diffstat (limited to 'ppapi/c/dev/ppb_transport_dev.h')
-rw-r--r-- | ppapi/c/dev/ppb_transport_dev.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ppapi/c/dev/ppb_transport_dev.h b/ppapi/c/dev/ppb_transport_dev.h index 89e214f..f34b3bf 100644 --- a/ppapi/c/dev/ppb_transport_dev.h +++ b/ppapi/c/dev/ppb_transport_dev.h @@ -13,8 +13,13 @@ #include "ppapi/c/pp_stdint.h" #include "ppapi/c/pp_var.h" -#define PPB_TRANSPORT_DEV_INTERFACE_0_6 "PPB_Transport;0.6" -#define PPB_TRANSPORT_DEV_INTERFACE PPB_TRANSPORT_DEV_INTERFACE_0_6 +#define PPB_TRANSPORT_DEV_INTERFACE_0_7 "PPB_Transport;0.7" +#define PPB_TRANSPORT_DEV_INTERFACE PPB_TRANSPORT_DEV_INTERFACE_0_7 + +typedef enum { + PP_TRANSPORTTYPE_DATAGRAM = 0, + PP_TRANSPORTTYPE_STREAM = 1 +} PP_TransportType; typedef enum { // STUN server address and port, e.g "stun.example.com:19302". @@ -50,7 +55,7 @@ struct PPB_Transport_Dev { // specified protocol. PP_Resource (*CreateTransport)(PP_Instance instance, const char* name, - const char* proto); + PP_TransportType type); // Returns PP_TRUE if resource is a Transport, PP_FALSE otherwise. PP_Bool (*IsTransport)(PP_Resource resource); |