|
| 1 | +/* saga-glib-1.0.vapi generated by valac 0.36.3, do not modify. */ |
| 2 | + |
| 3 | +namespace Saga { |
| 4 | + /** |
| 5 | + * @since 1.0 |
| 6 | + */ |
| 7 | + [CCode (cheader_filename = "saga-glib.h")] |
| 8 | + public class BackendModule : GLib.TypeModule { |
| 9 | + /** |
| 10 | + * @since 1.0 |
| 11 | + */ |
| 12 | + public BackendModule (string? directory, string name); |
| 13 | + public override bool load (); |
| 14 | + /** |
| 15 | + * Load a {@link Saga.BackendModule} from a name ensuring that a given |
| 16 | + * backend is never loaded twice. |
| 17 | + * |
| 18 | + * if the 'SAGA_GLIB_BACKEND_PATH' environment variable is specified, this |
| 19 | + * path will be used instead of system's defaults. |
| 20 | + * |
| 21 | + * @since 1.0 |
| 22 | + */ |
| 23 | + public static Saga.BackendModule new_for_name (string name) throws Saga.Error; |
| 24 | + /** |
| 25 | + * @since 1.0 |
| 26 | + */ |
| 27 | + public static Saga.BackendModule new_for_url (Saga.URL url) throws Saga.Error; |
| 28 | + public override void unload (); |
| 29 | + /** |
| 30 | + * The directory where the backend implementation is to be found, or 'null' |
| 31 | + * to use system's defaults. |
| 32 | + * |
| 33 | + * @since 1.0 |
| 34 | + */ |
| 35 | + public string? directory { get; construct; } |
| 36 | + /** |
| 37 | + * The name of the backend to use. |
| 38 | + * |
| 39 | + * @since 1.0 |
| 40 | + */ |
| 41 | + public string name { get; construct; } |
| 42 | + /** |
| 43 | + * The computed path used to retreive the shared library. |
| 44 | + * |
| 45 | + * @since 1.0 |
| 46 | + */ |
| 47 | + public string path { get; construct; } |
| 48 | + /** |
| 49 | + * Struct containing types provided by the backend. |
| 50 | + * |
| 51 | + * @since 1.0 |
| 52 | + */ |
| 53 | + public Saga.BackendTypes types { get; private set; } |
| 54 | + } |
| 55 | + [CCode (cheader_filename = "saga-glib.h")] |
| 56 | + public class Context : GLib.Object, Saga.Object { |
| 57 | + public Context (string type) throws Saga.Error, Saga.Error, Saga.Error; |
| 58 | + public string cert_repository { get; set; } |
| 59 | + /** |
| 60 | + * Note: Since 'type' is not an acceptable property name, so 'context_type' |
| 61 | + * had to be used instead. |
| 62 | + */ |
| 63 | + public string context_type { get; set construct; } |
| 64 | + public int lifetime { get; set; } |
| 65 | + public string remote_host { get; set; } |
| 66 | + public string remote_id { get; set; } |
| 67 | + public uint remote_port { get; set; } |
| 68 | + public string server { get; set; } |
| 69 | + public string user_cert { get; set; } |
| 70 | + public string user_id { get; set; } |
| 71 | + public string user_pass { get; set; } |
| 72 | + public string user_proxy { get; set; } |
| 73 | + public string user_vo { get; set; } |
| 74 | + } |
| 75 | + [CCode (cheader_filename = "saga-glib.h")] |
| 76 | + public abstract class Job : Saga.Task<int>, Saga.Permissions { |
| 77 | + public Job (); |
| 78 | + public abstract void checkpoint () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 79 | + public virtual async void checkpoint_async (int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 80 | + public abstract string get_group () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 81 | + public abstract unowned Saga.JobDescription get_job_description () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 82 | + public abstract string get_owner () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 83 | + public override int get_result () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 84 | + public override async int get_result_async (int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 85 | + public abstract GLib.InputStream get_stderr () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 86 | + public abstract GLib.OutputStream get_stdin () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 87 | + public abstract GLib.InputStream get_stdout () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 88 | + public abstract void migrate (owned Saga.JobDescription jd) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 89 | + public virtual async void migrate_async (owned Saga.JobDescription jd, int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 90 | + public abstract void permissions_allow (string id, Saga.Permission perm) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 91 | + public abstract bool permissions_check (string id, Saga.Permission perm) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 92 | + public abstract void permissions_deny (string id, Saga.Permission perm) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 93 | + public abstract void resume () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 94 | + public virtual async void resume_async (int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 95 | + public abstract void @signal (GLib.ProcessSignal signum) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 96 | + public virtual async void signal_async (GLib.ProcessSignal signum, int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 97 | + public abstract void suspend () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 98 | + public virtual async void suspend_async (int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 99 | + public GLib.DateTime created { get; construct; } |
| 100 | + public string[] execution_hosts { get; set; } |
| 101 | + public int? exit_code { get; set; } |
| 102 | + public GLib.DateTime? finished { get; set; } |
| 103 | + public string job_id { get; construct; } |
| 104 | + public Saga.URL service_url { get; construct; } |
| 105 | + public GLib.DateTime? started { get; set; } |
| 106 | + public GLib.ProcessSignal? term_sig { get; set; } |
| 107 | + public signal void job_cpu_time (int second); |
| 108 | + public signal void job_memory_use (double megabyte); |
| 109 | + public signal void job_performance (double flops); |
| 110 | + public signal void job_signal (GLib.ProcessSignal sig); |
| 111 | + public signal void job_state (Saga.JobState state); |
| 112 | + public signal void job_state_detail (string state_detail); |
| 113 | + public signal void job_vmemory_use (double megabyte); |
| 114 | + } |
| 115 | + [CCode (cheader_filename = "saga-glib.h")] |
| 116 | + public class JobDescription : GLib.Object, Saga.Object { |
| 117 | + public JobDescription (); |
| 118 | + public string[] arguments { get; set; } |
| 119 | + public string[] candidate_hosts { get; set; } |
| 120 | + public bool? cleanup { get; set; } |
| 121 | + public string? cpu_architecture { get; set; } |
| 122 | + public string[] environment { get; set; } |
| 123 | + public string? error { get; set; } |
| 124 | + public string executable { get; set; } |
| 125 | + public Saga.FileTransfer[] file_transfer { get; set; } |
| 126 | + public string? input { get; set; } |
| 127 | + public bool interactive { get; set; } |
| 128 | + public Saga.URL[] job_contact { get; set; } |
| 129 | + public string? job_project { get; set; } |
| 130 | + public GLib.DateTime? job_start_time { get; set; } |
| 131 | + public int number_of_processes { get; set; } |
| 132 | + public string? operating_system_type { get; set; } |
| 133 | + public string? output { get; set; } |
| 134 | + public int processes_per_host { get; set; } |
| 135 | + public string? queue { get; set; } |
| 136 | + public string? spmd_variation { get; set; } |
| 137 | + public int threads_per_process { get; set; } |
| 138 | + public int total_cpu_count { get; set; } |
| 139 | + public GLib.TimeSpan? total_cpu_time { get; set; } |
| 140 | + public int? total_physical_memory { get; set; } |
| 141 | + public GLib.TimeSpan? wall_time_limit { get; set; } |
| 142 | + public string working_directory { get; set; } |
| 143 | + } |
| 144 | + [CCode (cheader_filename = "saga-glib.h")] |
| 145 | + public abstract class JobService : GLib.Object, Saga.Object { |
| 146 | + public JobService (); |
| 147 | + public abstract Saga.Job create_job (owned Saga.JobDescription jd) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 148 | + public virtual async Saga.Job create_job_async (owned Saga.JobDescription jd, int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 149 | + public abstract Saga.Job get_job (string job_id) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 150 | + public virtual async Saga.Job get_job_async (string job_id, int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 151 | + public abstract Saga.Job get_self () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 152 | + public virtual async Saga.Job get_self_async (int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 153 | + public Saga.URL get_service_url (); |
| 154 | + public abstract string[] list () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 155 | + public virtual async string[] list_async (int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 156 | + public static new Saga.JobService @new (Saga.Session session, Saga.URL url) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 157 | + public virtual Saga.Job run_job (string command_line, string host = "", out GLib.OutputStream? stdin = null, out GLib.InputStream? stdout = null, out GLib.InputStream? stderr = null) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 158 | + public virtual async Saga.Job run_job_async (string command_line, string host = "", int priority = GLib.Priority.DEFAULT, out GLib.OutputStream? stdin = null, out GLib.InputStream? stdout = null, out GLib.InputStream? stderr = null) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 159 | + } |
| 160 | + [CCode (cheader_filename = "saga-glib.h")] |
| 161 | + public class Metric : Saga.Object, GLib.Object { |
| 162 | + public Metric (string name, string description, string mode, string unit, GLib.Value value); |
| 163 | + public string description { get; construct; } |
| 164 | + public string mode { get; construct; } |
| 165 | + public string name { get; construct; } |
| 166 | + public string unit { get; construct; } |
| 167 | + public GLib.Value value { get; construct; } |
| 168 | + } |
| 169 | + [CCode (cheader_filename = "saga-glib.h")] |
| 170 | + public class SerialTaskContainer : Saga.TaskContainer { |
| 171 | + public SerialTaskContainer (); |
| 172 | + public override void add (Saga.Task task); |
| 173 | + public override void cancel (double timeout = 0.0) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 174 | + public override async void cancel_async (double timeout = 0.0, int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 175 | + public override string get_id (); |
| 176 | + public override Saga.Metric get_metric (string name) throws Saga.Error; |
| 177 | + public override Saga.Task get_task (string id); |
| 178 | + public override Saga.Task[] get_tasks (); |
| 179 | + public override string[] list_metrics (); |
| 180 | + public override void remove (Saga.Task task); |
| 181 | + public override void run () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 182 | + public override async void run_async (int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 183 | + public override uint size (); |
| 184 | + public override Saga.Task wait (Saga.WaitMode wait_mode = WaitMode.ALL, double timeout = 0.0) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 185 | + public override async Saga.Task wait_async (Saga.WaitMode wait_mode = WaitMode.ALL, double timeout = 0.0, int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 186 | + } |
| 187 | + [CCode (cheader_filename = "saga-glib.h")] |
| 188 | + public class Session : GLib.Object, Saga.Object { |
| 189 | + public Session (); |
| 190 | + public void add_context (owned Saga.Context context) throws Saga.Error, Saga.Error; |
| 191 | + public static Saga.Session get_default (); |
| 192 | + public (unowned Saga.Context)[] list_contexts (); |
| 193 | + public void remove_context (Saga.Context context) throws Saga.Error; |
| 194 | + } |
| 195 | + [CCode (cheader_filename = "saga-glib.h")] |
| 196 | + public abstract class Task<T> : GLib.Object, Saga.Object, Saga.Monitorable { |
| 197 | + public Task (); |
| 198 | + public abstract void cancel (double timeout = 0.0) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 199 | + public virtual async void cancel_async (double timeout = 0.0, int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 200 | + public abstract string get_id (); |
| 201 | + public abstract Saga.Metric get_metric (string name) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 202 | + public abstract T get_result () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 203 | + public virtual async T get_result_async (int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 204 | + public abstract Saga.Session get_session () throws Saga.Error; |
| 205 | + public abstract Saga.TaskState get_state () throws Saga.Error, Saga.Error, Saga.Error; |
| 206 | + public virtual async Saga.TaskState get_state_async (int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error; |
| 207 | + public abstract string[] list_metrics () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 208 | + public abstract void run () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 209 | + public virtual async void run_async (int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 210 | + public abstract void wait (double timeout = 0.0) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 211 | + public virtual async void wait_async (double timeout = 0.0, int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 212 | + public signal void task_state (Saga.TaskState state); |
| 213 | + } |
| 214 | + [CCode (cheader_filename = "saga-glib.h")] |
| 215 | + public abstract class TaskContainer : GLib.Object, Saga.Object, Saga.Monitorable { |
| 216 | + public TaskContainer (); |
| 217 | + public abstract void add (Saga.Task task) throws Saga.Error, Saga.Error, Saga.Error; |
| 218 | + public abstract void cancel (double timeout = 0.0) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 219 | + public virtual async void cancel_async (double timeout = 0.0, int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 220 | + public abstract string get_id (); |
| 221 | + public abstract Saga.Metric get_metric (string name) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 222 | + public virtual Saga.TaskState[] get_states () throws Saga.Error, Saga.Error, Saga.Error; |
| 223 | + public abstract Saga.Task get_task (string id) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 224 | + public abstract Saga.Task[] get_tasks () throws Saga.Error, Saga.Error, Saga.Error; |
| 225 | + public abstract string[] list_metrics () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 226 | + public abstract void remove (Saga.Task task) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 227 | + public abstract void run () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 228 | + public virtual async void run_async (int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 229 | + public virtual uint size () throws Saga.Error, Saga.Error, Saga.Error; |
| 230 | + public abstract Saga.Task wait (Saga.WaitMode mode = WaitMode.ALL, double timeout = 0.0) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 231 | + public virtual async Saga.Task wait_async (Saga.WaitMode mode = WaitMode.ALL, double timeout = 0.0, int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 232 | + public signal void task_container_state (string task_id); |
| 233 | + } |
| 234 | + [CCode (cheader_filename = "saga-glib.h")] |
| 235 | + public class URL : GLib.Object, Saga.Object { |
| 236 | + public URL (string url) throws Saga.Error, Saga.Error; |
| 237 | + public string get_escaped (); |
| 238 | + public string get_string (); |
| 239 | + public void set_string (string url) throws Saga.Error; |
| 240 | + public Saga.URL translate (Saga.Session? s, string scheme) throws Saga.Error, Saga.Error; |
| 241 | + public string? fragment { get; set; } |
| 242 | + public string? host { get; set; } |
| 243 | + public string path { get; set; } |
| 244 | + public uint? port { get; set; } |
| 245 | + public string? query { get; set; } |
| 246 | + public string scheme { get; set; } |
| 247 | + public string? userinfo { get; set; } |
| 248 | + } |
| 249 | + [CCode (cheader_filename = "saga-glib.h")] |
| 250 | + public interface Monitorable : Saga.Object { |
| 251 | + public abstract Saga.Metric get_metric (string name) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 252 | + public virtual async Saga.Metric get_metric_async (string name, int priority = GLib.Priority.DEFAULT) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 253 | + public abstract string[] list_metrics () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 254 | + } |
| 255 | + [CCode (cheader_filename = "saga-glib.h")] |
| 256 | + public interface Object : GLib.Object { |
| 257 | + public abstract string get_id (); |
| 258 | + public abstract Saga.Session get_session () throws Saga.Error; |
| 259 | + } |
| 260 | + [CCode (cheader_filename = "saga-glib.h")] |
| 261 | + public interface Permissions : Saga.Object { |
| 262 | + public abstract string get_group () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 263 | + public abstract string get_owner () throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 264 | + public abstract void permissions_allow (string id, Saga.Permission perm) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 265 | + public abstract bool permissions_check (string id, Saga.Permission perm) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 266 | + public abstract void permissions_deny (string id, Saga.Permission perm) throws Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error, Saga.Error; |
| 267 | + } |
| 268 | + /** |
| 269 | + * Struct containing all {@link GLib.Type} provided by a backend. |
| 270 | + * |
| 271 | + * If a specific feature is not to be provided, the {@link GLib.Type.INVALID} |
| 272 | + * has to be used as placeholder. |
| 273 | + * |
| 274 | + * @since 1.0 |
| 275 | + */ |
| 276 | + [CCode (cheader_filename = "saga-glib.h")] |
| 277 | + public struct BackendTypes { |
| 278 | + /** |
| 279 | + * Type for the {@link Saga.JobService} implementation. |
| 280 | + * |
| 281 | + * @since 1.0 |
| 282 | + */ |
| 283 | + public GLib.Type job_service_type; |
| 284 | + /** |
| 285 | + * @since 1.0 |
| 286 | + */ |
| 287 | + public GLib.Type stream_server_type; |
| 288 | + /** |
| 289 | + * @since 1.0 |
| 290 | + */ |
| 291 | + public GLib.Type file_type; |
| 292 | + /** |
| 293 | + * @since 1.0 |
| 294 | + */ |
| 295 | + public GLib.Type logical_file_type; |
| 296 | + /** |
| 297 | + * @since 1.0 |
| 298 | + */ |
| 299 | + public GLib.Type stream_type; |
| 300 | + /** |
| 301 | + * @since 1.0 |
| 302 | + */ |
| 303 | + public GLib.Type rpc_type; |
| 304 | + } |
| 305 | + [CCode (cheader_filename = "saga-glib.h")] |
| 306 | + public struct FileTransfer { |
| 307 | + public string local_file; |
| 308 | + public string operator; |
| 309 | + public string remote_file; |
| 310 | + } |
| 311 | + [CCode (cheader_filename = "saga-glib.h")] |
| 312 | + public enum JobState { |
| 313 | + NEW, |
| 314 | + RUNNING, |
| 315 | + DONE, |
| 316 | + CANCELED, |
| 317 | + FAILED, |
| 318 | + SUSPENDED |
| 319 | + } |
| 320 | + [CCode (cheader_filename = "saga-glib.h")] |
| 321 | + [Flags] |
| 322 | + public enum Permission { |
| 323 | + NONE, |
| 324 | + QUERY, |
| 325 | + READ, |
| 326 | + WRITE, |
| 327 | + EXEC, |
| 328 | + OWNER, |
| 329 | + ALL |
| 330 | + } |
| 331 | + [CCode (cheader_filename = "saga-glib.h")] |
| 332 | + public enum TaskState { |
| 333 | + NEW, |
| 334 | + RUNNING, |
| 335 | + DONE, |
| 336 | + CANCELED, |
| 337 | + FAILED |
| 338 | + } |
| 339 | + [CCode (cheader_filename = "saga-glib.h")] |
| 340 | + public enum WaitMode { |
| 341 | + ALL, |
| 342 | + ANY |
| 343 | + } |
| 344 | + [CCode (cheader_filename = "saga-glib.h")] |
| 345 | + public errordomain Error { |
| 346 | + INCORRECT_URL, |
| 347 | + BAD_PARAMETER, |
| 348 | + ALREADY_EXISTS, |
| 349 | + DOES_NOT_EXIST, |
| 350 | + INCORRECT_STATE, |
| 351 | + INCORRECT_TYPE, |
| 352 | + PERMISSION_DENIED, |
| 353 | + AUTHORIZATION_FAILED, |
| 354 | + AUTHENTICATION_FAILED, |
| 355 | + TIMEOUT, |
| 356 | + NO_SUCCESS, |
| 357 | + NOT_IMPLEMENTED |
| 358 | + } |
| 359 | + /** |
| 360 | + * Initialize a SAGA backend and register releveant class and interfaces. |
| 361 | + * |
| 362 | + * Features are loaded with 'out' parameters or left 'null' if not |
| 363 | + * supported. |
| 364 | + * |
| 365 | + * @since 1.0 |
| 366 | + */ |
| 367 | + [CCode (cheader_filename = "saga-glib.h")] |
| 368 | + public delegate Saga.BackendTypes BackendInitFunc (GLib.TypeModule type_module); |
| 369 | +} |
0 commit comments