1 #ifndef SASS_CONTEXT_WRAPPER
2 #define SASS_CONTEXT_WRAPPER
8 #include <sass/context.h>
9 #include "custom_function_bridge.h"
10 #include "custom_importer_bridge.h"
16 void compile_data(struct Sass_Data_Context* dctx);
17 void compile_file(struct Sass_File_Context* fctx);
18 void compile_it(uv_work_t* req);
20 struct sass_context_wrapper {
28 char* source_map_root;
33 Sass_Data_Context* dctx;
34 Sass_File_Context* fctx;
41 Nan::Persistent<v8::Object> result;
42 Nan::Callback* error_callback;
43 Nan::Callback* success_callback;
45 std::vector<CustomFunctionBridge *> function_bridges;
46 std::vector<CustomImporterBridge *> importer_bridges;
49 struct sass_context_wrapper* sass_make_context_wrapper(void);
50 void sass_free_context_wrapper(struct sass_context_wrapper*);