michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef ctypes_Library_h michael@0: #define ctypes_Library_h michael@0: michael@0: #include "js/TypeDecls.h" michael@0: michael@0: struct JSCTypesCallbacks; michael@0: struct PRLibrary; michael@0: michael@0: namespace js { michael@0: namespace ctypes { michael@0: michael@0: enum LibrarySlot { michael@0: SLOT_LIBRARY = 0, michael@0: LIBRARY_SLOTS michael@0: }; michael@0: michael@0: namespace Library michael@0: { michael@0: bool Name(JSContext* cx, unsigned argc, JS::Value *vp); michael@0: michael@0: JSObject* Create(JSContext* cx, JS::Value path, JSCTypesCallbacks* callbacks); michael@0: michael@0: bool IsLibrary(JSObject* obj); michael@0: PRLibrary* GetLibrary(JSObject* obj); michael@0: michael@0: bool Open(JSContext* cx, unsigned argc, JS::Value* vp); michael@0: } michael@0: michael@0: } michael@0: } michael@0: michael@0: #endif /* ctypes_Library_h */