Skip to content

Instantly share code, notes, and snippets.

@gamerson
Created January 23, 2015 13:35
Show Gist options
  • Select an option

  • Save gamerson/c4b5218e83b1b373e2da to your computer and use it in GitHub Desktop.

Select an option

Save gamerson/c4b5218e83b1b373e2da to your computer and use it in GitHub Desktop.
JNAerator output files for libsass 3.0.2
package sass;
import com.ochafik.lang.jnaerator.runtime.Structure;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.PointerByReference;
import sass.SassLibrary.Sass_C_Function_Descriptor;
/**
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:54</i><br>
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
* For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> , <a href="http://rococoa.dev.java.net/">Rococoa</a>, or <a href="http://jna.dev.java.net/">JNA</a>.
*/
public class sass_context extends Structure<sass_context, sass_context.ByValue, sass_context.ByReference > {
/// C type : const char*
public Pointer input_path;
/// C type : const char*
public Pointer output_path;
/// C type : const char*
public Pointer source_string;
/// C type : char*
public Pointer output_string;
/// C type : char*
public Pointer source_map_string;
/// C type : sass_options
public sass_options options;
public int error_status;
/// C type : char*
public Pointer error_message;
/// C type : Sass_C_Function_Descriptor*
public Sass_C_Function_Descriptor c_functions;
/// C type : char**
public PointerByReference included_files;
public int num_included_files;
public sass_context() {
super();
initFieldOrder();
}
protected void initFieldOrder() {
setFieldOrder(new String[]{"input_path", "output_path", "source_string", "output_string", "source_map_string", "options", "error_status", "error_message", "c_functions", "included_files", "num_included_files"});
}
protected ByReference newByReference() { return new ByReference(); }
protected ByValue newByValue() { return new ByValue(); }
protected sass_context newInstance() { return new sass_context(); }
public static sass_context[] newArray(int arrayLength) {
return Structure.newArray(sass_context.class, arrayLength);
}
public static class ByReference extends sass_context implements Structure.ByReference {
};
public static class ByValue extends sass_context implements Structure.ByValue {
};
}
package sass;
import com.ochafik.lang.jnaerator.runtime.Structure;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.PointerByReference;
import sass.SassLibrary.Sass_C_Function_Descriptor;
/**
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:68</i><br>
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
* For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> , <a href="http://rococoa.dev.java.net/">Rococoa</a>, or <a href="http://jna.dev.java.net/">JNA</a>.
*/
public class sass_file_context extends Structure<sass_file_context, sass_file_context.ByValue, sass_file_context.ByReference > {
/// C type : const char*
public Pointer input_path;
/// C type : const char*
public Pointer output_path;
/// C type : char*
public Pointer output_string;
/// C type : char*
public Pointer source_map_string;
/// C type : sass_options
public sass_options options;
public int error_status;
/// C type : char*
public Pointer error_message;
/// C type : Sass_C_Function_Descriptor*
public Sass_C_Function_Descriptor c_functions;
/// C type : char**
public PointerByReference included_files;
public int num_included_files;
public sass_file_context() {
super();
initFieldOrder();
}
protected void initFieldOrder() {
setFieldOrder(new String[]{"input_path", "output_path", "output_string", "source_map_string", "options", "error_status", "error_message", "c_functions", "included_files", "num_included_files"});
}
protected ByReference newByReference() { return new ByReference(); }
protected ByValue newByValue() { return new ByValue(); }
protected sass_file_context newInstance() { return new sass_file_context(); }
public static sass_file_context[] newArray(int arrayLength) {
return Structure.newArray(sass_file_context.class, arrayLength);
}
public static class ByReference extends sass_file_context implements Structure.ByReference {
};
public static class ByValue extends sass_file_context implements Structure.ByValue {
};
}
package sass;
import com.ochafik.lang.jnaerator.runtime.Structure;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.PointerByReference;
import sass.SassLibrary.Sass_C_Function_Descriptor;
/**
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:81</i><br>
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
* For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> , <a href="http://rococoa.dev.java.net/">Rococoa</a>, or <a href="http://jna.dev.java.net/">JNA</a>.
*/
public class sass_folder_context extends Structure<sass_folder_context, sass_folder_context.ByValue, sass_folder_context.ByReference > {
/// C type : const char*
public Pointer search_path;
/// C type : const char*
public Pointer output_path;
/// C type : sass_options
public sass_options options;
public int error_status;
/// C type : char*
public Pointer error_message;
/// C type : Sass_C_Function_Descriptor*
public Sass_C_Function_Descriptor c_functions;
/// C type : char**
public PointerByReference included_files;
public int num_included_files;
public sass_folder_context() {
super();
initFieldOrder();
}
protected void initFieldOrder() {
setFieldOrder(new String[]{"search_path", "output_path", "options", "error_status", "error_message", "c_functions", "included_files", "num_included_files"});
}
/**
* @param search_path C type : const char*<br>
* @param output_path C type : const char*<br>
* @param options C type : sass_options<br>
* @param error_message C type : char*<br>
* @param c_functions C type : Sass_C_Function_Descriptor*<br>
* @param included_files C type : char**
*/
public sass_folder_context(Pointer search_path, Pointer output_path, sass_options options, int error_status, Pointer error_message, Sass_C_Function_Descriptor c_functions, PointerByReference included_files, int num_included_files) {
super();
this.search_path = search_path;
this.output_path = output_path;
this.options = options;
this.error_status = error_status;
this.error_message = error_message;
this.c_functions = c_functions;
this.included_files = included_files;
this.num_included_files = num_included_files;
initFieldOrder();
}
protected ByReference newByReference() { return new ByReference(); }
protected ByValue newByValue() { return new ByValue(); }
protected sass_folder_context newInstance() { return new sass_folder_context(); }
public static sass_folder_context[] newArray(int arrayLength) {
return Structure.newArray(sass_folder_context.class, arrayLength);
}
public static class ByReference extends sass_folder_context implements Structure.ByReference {
};
public static class ByValue extends sass_folder_context implements Structure.ByValue {
};
}
package sass;
import com.ochafik.lang.jnaerator.runtime.Structure;
import com.sun.jna.Pointer;
/**
* Thar be dragons.<br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:27</i><br>
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
* For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> , <a href="http://rococoa.dev.java.net/">Rococoa</a>, or <a href="http://jna.dev.java.net/">JNA</a>.
*/
public class sass_options extends Structure<sass_options, sass_options.ByValue, sass_options.ByReference > {
/// A value from above SASS_STYLE_* constants
public int output_style;
/// If you want inline source comments
public byte source_comments;
/**
* Used to create sourceMappingUrl<br>
* C type : const char*
*/
public Pointer source_map_file;
/// Disable sourceMappingUrl in css output
public byte omit_source_map_url;
/// embed sourceMappingUrl as data uri
public byte source_map_embed;
/// embed include contents in maps
public byte source_map_contents;
/// Treat source_string as sass (as opposed to scss)
public byte is_indented_syntax_src;
/**
* Semicolon-separated on Windows<br>
* C type : const char*
*/
public Pointer include_paths;
/**
* For the image-url Sass function<br>
* C type : const char*
*/
public Pointer image_path;
/// Precision for outputting fractional numbers
public int precision;
public sass_options() {
super();
initFieldOrder();
}
protected void initFieldOrder() {
setFieldOrder(new String[]{"output_style", "source_comments", "source_map_file", "omit_source_map_url", "source_map_embed", "source_map_contents", "is_indented_syntax_src", "include_paths", "image_path", "precision"});
}
protected ByReference newByReference() { return new ByReference(); }
protected ByValue newByValue() { return new ByValue(); }
protected sass_options newInstance() { return new sass_options(); }
public static sass_options[] newArray(int arrayLength) {
return Structure.newArray(sass_options.class, arrayLength);
}
public static class ByReference extends sass_options implements Structure.ByReference {
};
public static class ByValue extends sass_options implements Structure.ByValue {
};
}
package sass;
import com.ochafik.lang.jnaerator.runtime.LibraryExtractor;
import com.ochafik.lang.jnaerator.runtime.MangledFunctionMapper;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.NativeLibrary;
import com.sun.jna.Pointer;
import com.sun.jna.PointerType;
/**
* JNA Wrapper for library <b>sass</b><br>
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.com/">Olivier Chafik</a> that <a href="http://code.google.com/p/jnaerator/wiki/CreditsAndLicense">uses a few opensource projects.</a>.<br>
* For help, please visit <a href="http://nativelibs4java.googlecode.com/">NativeLibs4Java</a> , <a href="http://rococoa.dev.java.net/">Rococoa</a>, or <a href="http://jna.dev.java.net/">JNA</a>.
*/
public interface SassLibrary extends Library {
public static final String JNA_LIBRARY_NAME = LibraryExtractor.getLibraryPath("sass", true, SassLibrary.class);
public static final NativeLibrary JNA_NATIVE_LIB = NativeLibrary.getInstance(SassLibrary.JNA_LIBRARY_NAME, MangledFunctionMapper.DEFAULT_OPTIONS);
public static final SassLibrary INSTANCE = (SassLibrary)Native.loadLibrary(SassLibrary.JNA_LIBRARY_NAME, SassLibrary.class, MangledFunctionMapper.DEFAULT_OPTIONS);
/// <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h</i>
public static final int _TR1_STDBOOL_H = (int)1;
public static final int SASS_STYLE_EXPANDED = (int)1;
/// <i>native declaration : /usr/include/c++/4.6.3/tr1/cstdbool</i>
public static final int _GLIBCXX_TR1_CSTDBOOL = (int)1;
public static final int SASS_STYLE_NESTED = (int)0;
public static final int SASS_STYLE_COMPACT = (int)2;
public static final int SASS_STYLE_COMPRESSED = (int)3;
/**
* Original signature : <code>sass_context* sass_new_context()</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:92</i>
*/
sass_context sass_new_context();
/**
* Original signature : <code>sass_file_context* sass_new_file_context()</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:93</i>
*/
sass_file_context sass_new_file_context();
/**
* Original signature : <code>sass_folder_context* sass_new_folder_context()</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:94</i>
*/
sass_folder_context sass_new_folder_context();
/**
* Original signature : <code>void sass_free_context(sass_context*)</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:96</i>
*/
void sass_free_context(sass_context ctx);
/**
* Original signature : <code>void sass_free_file_context(sass_file_context*)</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:97</i>
*/
void sass_free_file_context(sass_file_context ctx);
/**
* Original signature : <code>void sass_free_folder_context(sass_folder_context*)</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:98</i>
*/
void sass_free_folder_context(sass_folder_context ctx);
/**
* Original signature : <code>int sass_compile(sass_context*)</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:100</i>
*/
int sass_compile(sass_context ctx);
/**
* Original signature : <code>int sass_compile_file(sass_file_context*)</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:101</i>
*/
int sass_compile_file(sass_file_context ctx);
/**
* Original signature : <code>int sass_compile_folder(sass_folder_context*)</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:102</i>
*/
int sass_compile_folder(sass_folder_context ctx);
/**
* Original signature : <code>char* quote(const char*, const char)</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:104</i><br>
* @deprecated use the safer methods {@link #quote(java.lang.String, byte)} and {@link #quote(com.sun.jna.Pointer, byte)} instead
*/
@Deprecated
Pointer quote(Pointer str, byte quotemark);
/**
* Original signature : <code>char* quote(const char*, const char)</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:104</i>
*/
Pointer quote(String str, byte quotemark);
/**
* Original signature : <code>char* unquote(const char*)</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:105</i><br>
* @deprecated use the safer methods {@link #unquote(java.lang.String)} and {@link #unquote(com.sun.jna.Pointer)} instead
*/
@Deprecated
Pointer unquote(Pointer str);
/**
* Original signature : <code>char* unquote(const char*)</code><br>
* <i>native declaration : /usr/include/c++/4.6.3/tr1/stdbool.h:105</i>
*/
Pointer unquote(String str);
public static class Sass_C_Function_Descriptor extends PointerType {
public Sass_C_Function_Descriptor(Pointer address) {
super(address);
}
public Sass_C_Function_Descriptor() {
super();
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment