Created
January 23, 2015 13:27
-
-
Save gamerson/53990599f2e42436862d to your computer and use it in GitHub Desktop.
JNAerator input header file for libsass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define SASS_INTERFACE | |
#include "sass.h" | |
#include <stdbool.h> | |
#include "sass2scss.h" | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
#define SASS_STYLE_NESTED 0 | |
#define SASS_STYLE_EXPANDED 1 | |
#define SASS_STYLE_COMPACT 2 | |
#define SASS_STYLE_COMPRESSED 3 | |
// Please ensure there are no null values. | |
// Thar be dragons. | |
struct sass_options { | |
// Output style for the generated css code | |
// A value from above SASS_STYLE_* constants | |
int output_style; | |
// If you want inline source comments | |
bool source_comments; | |
// Path to source map file | |
// Enables the source map generating | |
// Used to create sourceMappingUrl | |
const char* source_map_file; | |
// Disable sourceMappingUrl in css output | |
bool omit_source_map_url; | |
// embed sourceMappingUrl as data uri | |
bool source_map_embed; | |
// embed include contents in maps | |
bool source_map_contents; | |
// Treat source_string as sass (as opposed to scss) | |
bool is_indented_syntax_src; | |
// Colon-separated list of paths | |
// Semicolon-separated on Windows | |
const char* include_paths; | |
// For the image-url Sass function | |
const char* image_path; | |
// Precision for outputting fractional numbers | |
int precision; | |
}; | |
struct sass_context { | |
const char* input_path; | |
const char* output_path; | |
const char* source_string; | |
char* output_string; | |
char* source_map_string; | |
struct sass_options options; | |
int error_status; | |
char* error_message; | |
struct Sass_C_Function_Descriptor* c_functions; | |
char** included_files; | |
int num_included_files; | |
}; | |
struct sass_file_context { | |
const char* input_path; | |
const char* output_path; | |
char* output_string; | |
char* source_map_string; | |
struct sass_options options; | |
int error_status; | |
char* error_message; | |
struct Sass_C_Function_Descriptor* c_functions; | |
char** included_files; | |
int num_included_files; | |
}; | |
struct sass_folder_context { | |
const char* search_path; | |
const char* output_path; | |
struct sass_options options; | |
int error_status; | |
char* error_message; | |
struct Sass_C_Function_Descriptor* c_functions; | |
char** included_files; | |
int num_included_files; | |
}; | |
struct sass_context* sass_new_context (void); | |
struct sass_file_context* sass_new_file_context (void); | |
struct sass_folder_context* sass_new_folder_context (void); | |
void sass_free_context (struct sass_context* ctx); | |
void sass_free_file_context (struct sass_file_context* ctx); | |
void sass_free_folder_context (struct sass_folder_context* ctx); | |
int sass_compile (struct sass_context* ctx); | |
int sass_compile_file (struct sass_file_context* ctx); | |
int sass_compile_folder (struct sass_folder_context* ctx); | |
char* quote (const char *str, const char quotemark); | |
char* unquote (const char *str); | |
#ifdef __cplusplus | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment