self_msgproto 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0b31d30e9104bcdb37adfe3c1ac5cafc5ab8db54cd40b2424e34b047e0296db
|
4
|
+
data.tar.gz: 820acdeff754f6c9f7961591c7c4b138cb2ad1337957a20072c8ddbb597c76bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 314c1fcecdb84da0aeba491ebda587d95724d20a2a286d2dc6d1f4cabf346d810af26b0962cec448cc98515fe016e311fd1e80fcf342be5c0925ac25c8c12e53
|
7
|
+
data.tar.gz: 9fe32a3c8f76b1d052c13ee9812de38ba5873e686d28d5fa55d779fface5e9622e6c52a0eb5584915332855cf9026d2826c89c89d30c1de130c9067f9fd3e3bd
|
data/ext/self_msgproto/acl.cpp
CHANGED
@@ -67,7 +67,7 @@ VALUE acl_to_fb(VALUE self)
|
|
67
67
|
|
68
68
|
ACLCommand command;
|
69
69
|
|
70
|
-
if (commandint
|
70
|
+
if (commandint > ACLCommand_MAX) {
|
71
71
|
rb_raise(rb_eStandardError, "acl command is invalid");
|
72
72
|
}
|
73
73
|
|
@@ -113,7 +113,7 @@ void acl_init() {
|
|
113
113
|
VALUE cRubySelfMsg = rb_define_module("SelfMsg");
|
114
114
|
VALUE cAcl = rb_define_class_under(cRubySelfMsg, "Acl", rb_cObject);
|
115
115
|
|
116
|
-
rb_define_method(cAcl, "initialize", acl_initialize, -1);
|
117
|
-
rb_define_method(cAcl, "to_fb", acl_to_fb, 0);
|
116
|
+
rb_define_method(cAcl, "initialize", reinterpret_cast< VALUE ( * ) ( ... ) >(acl_initialize), -1);
|
117
|
+
rb_define_method(cAcl, "to_fb", reinterpret_cast< VALUE ( * ) ( ... ) >(acl_to_fb), 0);
|
118
118
|
}
|
119
119
|
|
data/ext/self_msgproto/auth.cpp
CHANGED
@@ -101,7 +101,7 @@ void auth_init() {
|
|
101
101
|
VALUE cRubySelfMsg = rb_define_module("SelfMsg");
|
102
102
|
VALUE cAuth = rb_define_class_under(cRubySelfMsg, "Auth", rb_cObject);
|
103
103
|
|
104
|
-
rb_define_method(cAuth, "initialize", auth_initialize, -1);
|
105
|
-
rb_define_method(cAuth, "to_fb", auth_to_fb, 0);
|
104
|
+
rb_define_method(cAuth, "initialize", reinterpret_cast< VALUE ( * ) ( ... ) >(auth_initialize), -1);
|
105
|
+
rb_define_method(cAuth, "to_fb", reinterpret_cast< VALUE ( * ) ( ... ) >(auth_to_fb), 0);
|
106
106
|
}
|
107
107
|
|
@@ -48,6 +48,6 @@ void header_init() {
|
|
48
48
|
VALUE cRubySelfMsg = rb_define_module("SelfMsg");
|
49
49
|
VALUE cHeader = rb_define_class_under(cRubySelfMsg, "Header", rb_cObject);
|
50
50
|
|
51
|
-
rb_define_method(cHeader, "initialize", header_initialize, -1);
|
51
|
+
rb_define_method(cHeader, "initialize", reinterpret_cast< VALUE ( * ) ( ... ) >(header_initialize), -1);
|
52
52
|
}
|
53
53
|
|
@@ -125,7 +125,7 @@ void message_init() {
|
|
125
125
|
VALUE cRubySelfMsg = rb_define_module("SelfMsg");
|
126
126
|
VALUE cMessage = rb_define_class_under(cRubySelfMsg, "Message", rb_cObject);
|
127
127
|
|
128
|
-
rb_define_method(cMessage, "initialize", message_initialize, -1);
|
129
|
-
rb_define_method(cMessage, "to_fb", message_to_fb, 0);
|
128
|
+
rb_define_method(cMessage, "initialize", reinterpret_cast< VALUE ( * ) ( ... ) >(message_initialize), -1);
|
129
|
+
rb_define_method(cMessage, "to_fb", reinterpret_cast< VALUE ( * ) ( ... ) >(message_to_fb), 0);
|
130
130
|
}
|
131
131
|
|
@@ -54,6 +54,6 @@ void notification_init() {
|
|
54
54
|
VALUE cRubySelfMsg = rb_define_module("SelfMsg");
|
55
55
|
VALUE cHeader = rb_define_class_under(cRubySelfMsg, "Notification", rb_cObject);
|
56
56
|
|
57
|
-
rb_define_method(cHeader, "initialize", notification_initialize, -1);
|
57
|
+
rb_define_method(cHeader, "initialize", reinterpret_cast< VALUE ( * ) ( ... ) >(notification_initialize), -1);
|
58
58
|
}
|
59
59
|
|