lib/sassc/native/native_context_api.rb in sassc-0.0.9 vs lib/sassc/native/native_context_api.rb in sassc-0.0.10

- old
+ new

@@ -8,12 +8,16 @@ # Create and initialize a specific context # ADDAPI struct Sass_File_Context* ADDCALL sass_make_file_context (const char* input_path); # ADDAPI struct Sass_Data_Context* ADDCALL sass_make_data_context (char* source_string); attach_function :sass_make_file_context, [:string], :sass_file_context_ptr - attach_function :sass_make_data_context, [:string], :sass_data_context_ptr + attach_function :_make_data_context, :sass_make_data_context, [:pointer], :sass_data_context_ptr + def self.make_data_context(data) + _make_data_context(Native.native_string(data)) + end + # Call the compilation step for the specific context # ADDAPI int ADDCALL sass_compile_file_context (struct Sass_File_Context* ctx); # ADDAPI int ADDCALL sass_compile_data_context (struct Sass_Data_Context* ctx); attach_function :sass_compile_file_context, [:sass_file_context_ptr], :int attach_function :sass_compile_data_context, [:sass_data_context_ptr], :int @@ -63,11 +67,10 @@ # ADDAPI bool ADDCALL sass_option_get_source_map_contents (struct Sass_Options* options); # ADDAPI bool ADDCALL sass_option_get_omit_source_map_url (struct Sass_Options* options); # ADDAPI bool ADDCALL sass_option_get_is_indented_syntax_src (struct Sass_Options* options); # ADDAPI const char* ADDCALL sass_option_get_input_path (struct Sass_Options* options); # ADDAPI const char* ADDCALL sass_option_get_output_path (struct Sass_Options* options); - # ADDAPI const char* ADDCALL sass_option_get_image_path (struct Sass_Options* options); # ADDAPI const char* ADDCALL sass_option_get_include_path (struct Sass_Options* options); # ADDAPI const char* ADDCALL sass_option_get_source_map_file (struct Sass_Options* options); # ADDAPI Sass_C_Function_List ADDCALL sass_option_get_c_functions (struct Sass_Options* options); attach_function :sass_option_get_precision, [:sass_options_ptr], :int attach_function :sass_option_get_output_style, [:sass_options_ptr], SassOutputStyle @@ -76,11 +79,10 @@ attach_function :sass_option_get_source_map_contents, [:sass_options_ptr], :bool attach_function :sass_option_get_omit_source_map_url, [:sass_options_ptr], :bool attach_function :sass_option_get_is_indented_syntax_src, [:sass_options_ptr], :bool attach_function :sass_option_get_input_path, [:sass_options_ptr], :string attach_function :sass_option_get_output_path, [:sass_options_ptr], :string - attach_function :sass_option_get_image_path, [:sass_options_ptr], :string attach_function :sass_option_get_include_path, [:sass_options_ptr], :string attach_function :sass_option_get_source_map_file, [:sass_options_ptr], :string attach_function :sass_option_get_c_functions, [:sass_options_ptr], :sass_c_function_list_ptr # ADDAPI Sass_C_Import_Callback ADDCALL sass_option_get_importer (struct Sass_Options* options); @@ -92,11 +94,10 @@ # ADDAPI void ADDCALL sass_option_set_source_map_contents (struct Sass_Options* options, bool source_map_contents); # ADDAPI void ADDCALL sass_option_set_omit_source_map_url (struct Sass_Options* options, bool omit_source_map_url); # ADDAPI void ADDCALL sass_option_set_is_indented_syntax_src (struct Sass_Options* options, bool is_indented_syntax_src); # ADDAPI void ADDCALL sass_option_set_input_path (struct Sass_Options* options, const char* input_path); # ADDAPI void ADDCALL sass_option_set_output_path (struct Sass_Options* options, const char* output_path); - # ADDAPI void ADDCALL sass_option_set_image_path (struct Sass_Options* options, const char* image_path); # ADDAPI void ADDCALL sass_option_set_include_path (struct Sass_Options* options, const char* include_path); # ADDAPI void ADDCALL sass_option_set_source_map_file (struct Sass_Options* options, const char* source_map_file); # ADDAPI void ADDCALL sass_option_set_c_functions (struct Sass_Options* options, Sass_C_Function_List c_functions); # ADDAPI void ADDCALL sass_option_set_importer (struct Sass_Options* options, Sass_C_Import_Callback importer); attach_function :sass_option_set_precision, [:sass_options_ptr, :int], :void @@ -106,10 +107,9 @@ attach_function :sass_option_set_source_map_contents, [:sass_options_ptr, :bool], :void attach_function :sass_option_set_omit_source_map_url, [:sass_options_ptr, :bool], :void attach_function :sass_option_set_is_indented_syntax_src, [:sass_options_ptr, :bool], :void attach_function :sass_option_set_input_path, [:sass_options_ptr, :string], :void attach_function :sass_option_set_output_path, [:sass_options_ptr, :string], :void - attach_function :sass_option_set_image_path, [:sass_options_ptr, :string], :void attach_function :sass_option_set_include_path, [:sass_options_ptr, :string], :void attach_function :sass_option_set_source_map_file, [:sass_options_ptr, :string], :void attach_function :sass_option_set_c_functions, [:sass_options_ptr, :pointer], :void attach_function :sass_option_set_importer, [:sass_options_ptr, :sass_importer], :void