2015-10-27 20:59:15 +00:00
|
|
|
/* 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"
|
2015-10-19 20:39:21 +00:00
|
|
|
#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);
|
|
|
|
|
2015-10-19 20:39:21 +00:00
|
|
|
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);
|