HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/1526/task/1923/cwd/zaklada/html/node_modules/node-sass/src/sass_context_wrapper.h
#ifndef SASS_CONTEXT_WRAPPER
#define SASS_CONTEXT_WRAPPER

#include <vector>
#include <memory>
#include <nan.h>
#include <stdlib.h>
#include <sass/context.h>
#include "custom_function_bridge.h"
#include "custom_importer_bridge.h"

#ifdef __cplusplus
extern "C" {
#endif

  void compile_data(struct Sass_Data_Context* dctx);
  void compile_file(struct Sass_File_Context* fctx);
  void compile_it(uv_work_t* req);

  struct sass_context_wrapper {
    // binding related
    bool is_sync;
    void* cookie;
    char* file;
    char* include_path;
    char* out_file;
    char* source_map;
    char* source_map_root;
    char* linefeed;
    char* indent;

    // libsass related
    Sass_Data_Context* dctx;
    Sass_File_Context* fctx;

    // libuv related
    uv_async_t async;
    uv_work_t request;

    // v8 and nan related
    Nan::Persistent<v8::Object> result;
    Nan::AsyncResource* async_resource;
    Nan::Callback* error_callback;
    Nan::Callback* success_callback;

    std::vector<CustomFunctionBridge *> function_bridges;
    std::vector<CustomImporterBridge *> importer_bridges;
  };

  struct sass_context_wrapper*      sass_make_context_wrapper(void);
  void sass_free_context_wrapper(struct sass_context_wrapper*);

#ifdef __cplusplus
}
#endif

#endif