gamnit: use API 19 services to fix premultiplied texture on Android
[nit.git] / lib / mongodb / native_mongodb.nit
index 692d08a..05f2d19 100644 (file)
@@ -64,7 +64,7 @@ extern class NativeBSON `{ bson_t * `}
        # The `bson_as_json()` function shall encode bson as a JSON encoded UTF-8 string.
        # The caller is responsible for freeing the resulting UTF-8 encoded string
        # by calling `bson_free()` with the result.
-       fun to_native_string: CString `{ return bson_as_json(self, NULL); `}
+       fun to_c_string: CString `{ return bson_as_json(self, NULL); `}
 
        # Wrapper for `bson_destroy()`.
        #
@@ -123,10 +123,10 @@ extern class BSONObjectId `{ bson_oid_t * `}
        `}
 
        # Object id.
-       fun id: String import CString.to_s_with_copy `{
+       fun id: String import CString.to_s `{
                char str[25];
                bson_oid_to_string(self, str);
-               return CString_to_s_with_copy(str);
+               return CString_to_s(str);
        `}
 
        # Destroy `self`.