realm-js/src/js_realm.hpp

21 lines
517 B
C++
Raw Normal View History

/* Copyright 2015 Realm Inc - All Rights Reserved
* Proprietary and Confidential
*/
2015-08-13 16:12:48 +00:00
2015-11-28 02:36:04 +00:00
#import "js_util.hpp"
#include <map>
namespace realm {
class Realm;
using ObjectDefaults = std::map<std::string, JSValueRef>;
}
2015-08-13 16:12:48 +00:00
JSClassRef RJSRealmClass();
JSClassRef RJSRealmConstructorClass();
std::string RJSDefaultPath();
void RJSSetDefaultPath(std::string path);
std::map<std::string, realm::ObjectDefaults> &RJSDefaults(realm::Realm *realm);
2015-10-19 21:56:59 +00:00
std::map<std::string, JSValueRef> &RJSPrototypes(realm::Realm *realm);