]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/factor.hpp
webapps.wiki: adding search bar
[factor.git] / vm / factor.hpp
index fbd6873c2893510b39c787b913cb3215b2e18b2e..e127b891ddc9c703cb522eea0cf3476614ec753e 100644 (file)
@@ -1,7 +1,24 @@
-namespace factor
-{
+namespace factor {
 
-VM_C_API void start_standalone_factor(int argc, vm_char **argv);
-VM_C_API void *start_standalone_factor_in_new_thread(int argc, vm_char **argv);
+factor_vm* new_factor_vm();
+VM_C_API void start_standalone_factor(int argc, vm_char** argv);
+
+// image
+bool factor_arg(const vm_char* str, const vm_char* arg, cell* value);
+
+// objects
+cell object_size(cell tagged);
+
+// os-*
+void open_console();
+void close_console();
+void lock_console();
+void unlock_console();
+bool move_file(const vm_char* path1, const vm_char* path2);
+
+void ignore_ctrl_c();
+void handle_ctrl_c();
+
+bool set_memory_locked(cell base, cell size, bool locked);
 
 }