/usr/share/vala/vapi/snapd-glib.vapi is in libsnapd-glib-dev 1.39-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 | /* snapd-glib.vapi generated by vapigen-0.40, do not modify. */
[CCode (cprefix = "Snapd", gir_namespace = "Snapd", gir_version = "1", lower_case_cprefix = "snapd_")]
namespace Snapd {
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_alias_get_type ()")]
[Version (since = "1.8")]
public class Alias : GLib.Object {
[CCode (has_construct_function = false)]
protected Alias ();
[Version (deprecated = true, deprecated_since = "1.25", since = "1.8")]
public unowned string get_app ();
[Version (since = "1.25")]
public unowned string? get_app_auto ();
[Version (since = "1.25")]
public unowned string? get_app_manual ();
[Version (since = "1.25")]
public unowned string get_command ();
public unowned string get_name ();
public unowned string get_snap ();
public Snapd.AliasStatus get_status ();
public string app_auto { get; construct; }
public string app_manual { get; construct; }
public string command { get; construct; }
public string name { get; construct; }
public string snap { get; construct; }
public Snapd.AliasStatus status { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_app_get_type ()")]
[Version (since = "1.0")]
public class App : GLib.Object {
[CCode (has_construct_function = false)]
protected App ();
[Version (since = "1.25")]
public bool get_active ();
[CCode (array_length = false, array_null_terminated = true)]
[Version (deprecated = true, deprecated_since = "1.25", since = "1.7")]
public unowned string[] get_aliases ();
[Version (since = "1.9")]
public unowned Snapd.DaemonType? get_daemon_type ();
[Version (since = "1.14")]
public unowned string? get_desktop_file ();
[Version (since = "1.25")]
public bool get_enabled ();
public unowned string get_name ();
[Version (since = "1.25")]
public unowned string get_snap ();
public bool active { get; construct; }
[CCode (array_length = false, array_null_terminated = true)]
public string[] aliases { get; construct; }
public Snapd.DaemonType daemon_type { get; construct; }
public string desktop_file { get; construct; }
public bool enabled { get; construct; }
public string name { get; construct; }
public string snap { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_assertion_get_type ()")]
[Version (since = "1.0")]
public class Assertion : GLib.Object {
[CCode (has_construct_function = false)]
public Assertion (string content);
public string? get_body ();
public string? get_header (string name);
[CCode (array_length = false, array_null_terminated = true)]
public string[] get_headers ();
public string get_signature ();
[NoAccessorMethod]
public string content { owned get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_auth_data_get_type ()")]
[Version (since = "1.0")]
public class AuthData : GLib.Object {
[CCode (has_construct_function = false)]
public AuthData (string macaroon, [CCode (array_length = false, array_null_terminated = true)] string[] discharges);
[CCode (array_length = false, array_null_terminated = true)]
public unowned string[] get_discharges ();
public unowned string get_macaroon ();
[CCode (array_length = false, array_null_terminated = true)]
[NoAccessorMethod]
public string[] discharges { owned get; set; }
[NoAccessorMethod]
public string macaroon { owned get; set; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_change_get_type ()")]
[Version (since = "1.5")]
public class Change : GLib.Object {
[CCode (has_construct_function = false)]
protected Change ();
[Version (since = "1.30")]
public unowned string get_error ();
public unowned string get_id ();
public unowned string get_kind ();
public bool get_ready ();
public unowned GLib.DateTime? get_ready_time ();
public unowned GLib.DateTime get_spawn_time ();
public unowned string get_status ();
public unowned string get_summary ();
public unowned GLib.GenericArray<Snapd.Task> get_tasks ();
public string error { get; construct; }
public string id { get; construct; }
public string kind { get; construct; }
public bool ready { get; construct; }
public GLib.DateTime ready_time { get; construct; }
public GLib.DateTime spawn_time { get; construct; }
public string status { get; construct; }
public string summary { get; construct; }
public GLib.GenericArray<void*> tasks { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_channel_get_type ()")]
[Version (since = "1.22")]
public class Channel : GLib.Object {
[CCode (has_construct_function = false)]
protected Channel ();
[Version (since = "1.31")]
public unowned string? get_branch ();
public Snapd.Confinement get_confinement ();
public unowned string get_epoch ();
public unowned string get_name ();
public unowned string get_revision ();
[Version (since = "1.31")]
public unowned string get_risk ();
public int64 get_size ();
[Version (since = "1.31")]
public unowned string get_track ();
public unowned string get_version ();
public Snapd.Confinement confinement { get; construct; }
public string epoch { get; construct; }
public string name { get; construct; }
public string revision { get; construct; }
public int64 size { get; construct; }
public string version { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_client_get_type ()")]
[Version (since = "1.0")]
public class Client : GLib.Object {
[CCode (has_construct_function = false)]
public Client ();
[Version (since = "1.30")]
public async Snapd.Change abort_change_async (string id, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.30")]
public Snapd.Change abort_change_sync (string id, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.8")]
public async bool add_assertions_async (string assertions, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.8")]
public bool add_assertions_sync (string assertions, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.25")]
public async bool alias_async (string snap, string app, string alias, [CCode (delegate_target_pos = 4.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.25")]
public bool alias_sync (string snap, string app, string alias, [CCode (delegate_target_pos = 4.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.3")]
public async bool buy_async (string id, double amount, string currency, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.3")]
public bool buy_sync (string id, double amount, string currency, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.3")]
public async bool check_buy_async (GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.3")]
public bool check_buy_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (deprecated = true, deprecated_since = "1.24", since = "1.3")]
public async bool connect_async (GLib.Cancellable? cancellable) throws GLib.Error;
public async bool connect_interface_async (string plug_snap, string plug_name, string slot_snap, string slot_name, [CCode (delegate_target_pos = 5.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
public bool connect_interface_sync (string plug_snap, string plug_name, string slot_snap, string slot_name, [CCode (delegate_target_pos = 5.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
public bool connect_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.3")]
public async Snapd.UserInformation create_user_async (string email, Snapd.CreateUserFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.3")]
public Snapd.UserInformation create_user_sync (string email, Snapd.CreateUserFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.3")]
public async GLib.GenericArray<weak Snapd.UserInformation> create_users_async (GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.3")]
public GLib.GenericArray<weak Snapd.UserInformation> create_users_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (deprecated = true, deprecated_since = "1.25", since = "1.8")]
public async bool disable_aliases_async (string snap, string aliases, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (deprecated = true, deprecated_since = "1.25", since = "1.8")]
public bool disable_aliases_sync (string snap, string aliases, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool disable_async (string name, [CCode (delegate_target_pos = 2.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
public bool disable_sync (string name, [CCode (delegate_target_pos = 2.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool disconnect_interface_async (string plug_snap, string plug_name, string slot_snap, string slot_name, [CCode (delegate_target_pos = 5.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
public bool disconnect_interface_sync (string plug_snap, string plug_name, string slot_snap, string slot_name, [CCode (delegate_target_pos = 5.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (deprecated = true, deprecated_since = "1.25", since = "1.8")]
public async bool enable_aliases_async (string snap, string aliases, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (deprecated = true, deprecated_since = "1.25", since = "1.8")]
public bool enable_aliases_sync (string snap, string aliases, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool enable_async (string name, [CCode (delegate_target_pos = 2.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
public bool enable_sync (string name, [CCode (delegate_target_pos = 2.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async GLib.GenericArray<weak Snapd.Snap> find_async (Snapd.FindFlags flags, string query, GLib.Cancellable? cancellable, out string suggested_currency) throws GLib.Error;
[Version (since = "1.8")]
public async GLib.GenericArray<weak Snapd.Snap> find_refreshable_async (GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.8")]
public GLib.GenericArray<weak Snapd.Snap> find_refreshable_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.7")]
public async GLib.GenericArray<weak Snapd.Snap> find_section_async (Snapd.FindFlags flags, string? section, string? query, GLib.Cancellable? cancellable, out string suggested_currency) throws GLib.Error;
[Version (since = "1.7")]
public GLib.GenericArray<weak Snapd.Snap> find_section_sync (Snapd.FindFlags flags, string? section, string? query, out string suggested_currency, GLib.Cancellable? cancellable = null) throws GLib.Error;
public GLib.GenericArray<weak Snapd.Snap> find_sync (Snapd.FindFlags flags, string query, out string suggested_currency, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (has_construct_function = false)]
[Version (since = "1.5")]
public Client.from_socket (GLib.Socket socket);
[Version (since = "1.8")]
public async GLib.GenericArray<weak Snapd.Alias> get_aliases_async (GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.8")]
public GLib.GenericArray<weak Snapd.Alias> get_aliases_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.19")]
public bool get_allow_interaction ();
[Version (since = "1.25")]
public async GLib.GenericArray<weak Snapd.App> get_apps_async (Snapd.GetAppsFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.25")]
public GLib.GenericArray<weak Snapd.App> get_apps_sync (Snapd.GetAppsFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "1.8")]
public async string[] get_assertions_async (string type, GLib.Cancellable? cancellable) throws GLib.Error;
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "1.8")]
public string[] get_assertions_sync (string type, GLib.Cancellable? cancellable = null) throws GLib.Error;
public unowned Snapd.AuthData? get_auth_data ();
[Version (since = "1.29")]
public async Snapd.Change get_change_async (string id, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.29")]
public Snapd.Change get_change_sync (string id, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.29")]
public async GLib.GenericArray<weak Snapd.Change> get_changes_async (Snapd.ChangeFilter filter, string? snap_name, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.29")]
public GLib.GenericArray<weak Snapd.Change> get_changes_sync (Snapd.ChangeFilter filter, string? snap_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async Snapd.Icon get_icon_async (string name, GLib.Cancellable? cancellable) throws GLib.Error;
public Snapd.Icon get_icon_sync (string name, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool get_interfaces_async (GLib.Cancellable? cancellable, out GLib.GenericArray<weak Snapd.Plug> plugs, out GLib.GenericArray<weak Snapd.Slot> slots) throws GLib.Error;
public bool get_interfaces_sync (out GLib.GenericArray<weak Snapd.Plug> plugs, out GLib.GenericArray<weak Snapd.Slot> slots, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "1.7")]
public async string[] get_sections_async (GLib.Cancellable? cancellable) throws GLib.Error;
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "1.7")]
public string[] get_sections_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.24")]
public unowned string get_socket_path ();
public async Snapd.SystemInformation get_system_information_async (GLib.Cancellable? cancellable) throws GLib.Error;
public Snapd.SystemInformation get_system_information_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.16")]
public unowned string get_user_agent ();
[Version (since = "1.26")]
public async GLib.GenericArray<weak Snapd.UserInformation> get_users_async (GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.26")]
public GLib.GenericArray<weak Snapd.UserInformation> get_users_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.12")]
public async bool install2_async (Snapd.InstallFlags flags, string name, string? channel, string? revision, [CCode (delegate_target_pos = 5.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.12")]
public bool install2_sync (Snapd.InstallFlags flags, string name, string? channel, string? revision, [CCode (delegate_target_pos = 5.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (deprecated = true, deprecated_since = "1.12", since = "1.0")]
public async bool install_async (string name, string? channel, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.9")]
public async bool install_stream_async (Snapd.InstallFlags flags, GLib.InputStream stream, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.9")]
public bool install_stream_sync (Snapd.InstallFlags flags, GLib.InputStream stream, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (deprecated = true, deprecated_since = "1.12", since = "1.0")]
public bool install_sync (string name, string? channel, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async GLib.GenericArray<weak Snapd.Snap> list_async (GLib.Cancellable? cancellable) throws GLib.Error;
public async Snapd.Snap list_one_async (string name, GLib.Cancellable? cancellable) throws GLib.Error;
public Snapd.Snap list_one_sync (string name, GLib.Cancellable? cancellable = null) throws GLib.Error;
public GLib.GenericArray<weak Snapd.Snap> list_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.26")]
public async Snapd.UserInformation login2_async (string email, string password, string? otp, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.26")]
public Snapd.UserInformation login2_sync (string email, string password, string? otp, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (deprecated = true, deprecated_since = "1.26", since = "1.0")]
public async Snapd.AuthData login_async (string email, string password, string? otp, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (deprecated = true, deprecated_since = "1.26", since = "1.0")]
public Snapd.AuthData login_sync (string email, string password, string? otp, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.25")]
public async bool prefer_async (string snap, [CCode (delegate_target_pos = 2.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.25")]
public bool prefer_sync (string snap, [CCode (delegate_target_pos = 2.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "1.5")]
public async string[] refresh_all_async ([CCode (delegate_target_pos = 1.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "1.5")]
public string[] refresh_all_sync ([CCode (delegate_target_pos = 1.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool refresh_async (string name, string? channel, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
public bool refresh_sync (string name, string? channel, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
public async bool remove_async (string name, [CCode (delegate_target_pos = 2.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
public bool remove_sync (string name, [CCode (delegate_target_pos = 2.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (deprecated = true, deprecated_since = "1.25", since = "1.8")]
public async bool reset_aliases_async (string snap, string aliases, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (deprecated = true, deprecated_since = "1.25", since = "1.8")]
public bool reset_aliases_sync (string snap, string aliases, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.8")]
public async bool run_snapctl_async (string context_id, string args, GLib.Cancellable? cancellable, out string stdout_output, out string stderr_output) throws GLib.Error;
[Version (since = "1.8")]
public bool run_snapctl_sync (string context_id, string args, out string stdout_output, out string stderr_output, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.19")]
public void set_allow_interaction (bool allow_interaction);
public void set_auth_data (Snapd.AuthData? auth_data);
[Version (since = "1.24")]
public void set_socket_path (string? socket_path);
[Version (since = "1.16")]
public void set_user_agent (string? user_agent);
[Version (since = "1.26")]
public async bool switch_async (string name, string channel, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.26")]
public bool switch_sync (string name, string channel, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.9")]
public async bool try_async (string path, [CCode (delegate_target_pos = 2.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.9")]
public bool try_sync (string path, [CCode (delegate_target_pos = 2.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
[Version (since = "1.25")]
public async bool unalias_async (string? snap, string? alias, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable) throws GLib.Error;
[Version (since = "1.25")]
public bool unalias_sync (string? snap, string? alias, [CCode (delegate_target_pos = 3.5)] Snapd.ProgressCallback? progress_callback, GLib.Cancellable? cancellable = null) throws GLib.Error;
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_connection_get_type ()")]
[Version (since = "1.0")]
public class Connection : GLib.Object {
[CCode (has_construct_function = false)]
protected Connection ();
public unowned string get_name ();
public unowned string get_snap ();
public string name { get; construct; }
public string snap { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_icon_get_type ()")]
[Version (since = "1.0")]
public class Icon : GLib.Object {
[CCode (has_construct_function = false)]
protected Icon ();
public unowned GLib.Bytes get_data ();
public unowned string get_mime_type ();
public GLib.Bytes data { get; construct; }
public string mime_type { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_plug_get_type ()")]
[Version (since = "1.0")]
public class Plug : GLib.Object {
[CCode (has_construct_function = false)]
protected Plug ();
[Version (since = "1.3")]
public unowned GLib.Variant? get_attribute (string name);
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "1.3")]
public string[] get_attribute_names (out uint length);
public unowned GLib.GenericArray<Snapd.Connection> get_connections ();
public unowned string get_interface ();
public unowned string get_label ();
public unowned string get_name ();
public unowned string get_snap ();
[Version (since = "1.3")]
public bool has_attribute (string name);
[NoAccessorMethod]
public GLib.HashTable<void*,void*> attributes { owned get; construct; }
public GLib.GenericArray<void*> connections { get; construct; }
public string @interface { get; construct; }
public string label { get; construct; }
public string name { get; construct; }
public string snap { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_price_get_type ()")]
[Version (since = "1.0")]
public class Price : GLib.Object {
[CCode (has_construct_function = false)]
protected Price ();
public double get_amount ();
public unowned string get_currency ();
public double amount { get; construct; }
public string currency { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_screenshot_get_type ()")]
[Version (since = "1.0")]
public class Screenshot : GLib.Object {
[CCode (has_construct_function = false)]
protected Screenshot ();
public uint get_height ();
public unowned string get_url ();
public uint get_width ();
public uint height { get; construct; }
public string url { get; construct; }
public uint width { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_slot_get_type ()")]
[Version (since = "1.0")]
public class Slot : GLib.Object {
[CCode (has_construct_function = false)]
protected Slot ();
[Version (since = "1.3")]
public unowned GLib.Variant? get_attribute (string name);
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "1.3")]
public string[] get_attribute_names (out uint length);
public unowned GLib.GenericArray<Snapd.Connection> get_connections ();
public unowned string get_interface ();
public unowned string get_label ();
public unowned string get_name ();
public unowned string get_snap ();
[Version (since = "1.3")]
public bool has_attribute (string name);
[NoAccessorMethod]
public GLib.HashTable<void*,void*> attributes { owned get; construct; }
public GLib.GenericArray<void*> connections { get; construct; }
public string @interface { get; construct; }
public string label { get; construct; }
public string name { get; construct; }
public string snap { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_snap_get_type ()")]
[Version (since = "1.0")]
public class Snap : GLib.Object {
[CCode (has_construct_function = false)]
protected Snap ();
public unowned GLib.GenericArray<Snapd.App> get_apps ();
[Version (since = "1.25")]
public unowned string get_broken ();
public unowned string get_channel ();
[Version (since = "1.22")]
public unowned GLib.GenericArray<Snapd.Channel> get_channels ();
public Snapd.Confinement get_confinement ();
[Version (since = "1.13")]
public unowned string get_contact ();
public unowned string get_description ();
public unowned string get_developer ();
public bool get_devmode ();
public int64 get_download_size ();
public unowned string get_icon ();
public unowned string get_id ();
public unowned GLib.DateTime? get_install_date ();
public int64 get_installed_size ();
[Version (since = "1.8")]
public bool get_jailmode ();
[Version (since = "1.19")]
public unowned string? get_license ();
public unowned string get_name ();
public unowned GLib.GenericArray<Snapd.Price> get_prices ();
public bool get_private ();
public unowned string get_revision ();
public unowned GLib.GenericArray<Snapd.Screenshot> get_screenshots ();
public Snapd.SnapType get_snap_type ();
public Snapd.SnapStatus get_status ();
public unowned string get_summary ();
[Version (since = "1.14")]
public unowned string? get_title ();
[Version (since = "1.7")]
public unowned string get_tracking_channel ();
[CCode (array_length = false, array_null_terminated = true)]
[Version (since = "1.22")]
public unowned string[] get_tracks ();
public bool get_trymode ();
public unowned string get_version ();
[Version (since = "1.22")]
public unowned Snapd.Channel? match_channel (string name);
public GLib.GenericArray<void*> apps { get; construct; }
public string broken { get; construct; }
public string channel { get; construct; }
public GLib.GenericArray<void*> channels { get; construct; }
public Snapd.Confinement confinement { get; construct; }
public string contact { get; construct; }
public string description { get; construct; }
public string developer { get; construct; }
public bool devmode { get; construct; }
public int64 download_size { get; construct; }
public string icon { get; construct; }
public string id { get; construct; }
public GLib.DateTime install_date { get; construct; }
public int64 installed_size { get; construct; }
public bool jailmode { get; construct; }
public string license { get; construct; }
public string name { get; construct; }
public GLib.GenericArray<void*> prices { get; construct; }
public bool @private { get; construct; }
public string revision { get; construct; }
public GLib.GenericArray<void*> screenshots { get; construct; }
public Snapd.SnapType snap_type { get; construct; }
public Snapd.SnapStatus status { get; construct; }
public string summary { get; construct; }
public string title { get; construct; }
public string tracking_channel { get; construct; }
[CCode (array_length = false, array_null_terminated = true)]
public string[] tracks { get; construct; }
public bool trymode { get; construct; }
public string version { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_system_information_get_type ()")]
[Version (since = "1.0")]
public class SystemInformation : GLib.Object {
[CCode (has_construct_function = false)]
protected SystemInformation ();
[Version (since = "1.11")]
public unowned string get_binaries_directory ();
[Version (since = "1.15")]
public Snapd.SystemConfinement get_confinement ();
[Version (since = "1.11")]
public unowned string get_kernel_version ();
[Version (since = "1.7")]
public bool get_managed ();
[Version (since = "1.11")]
public unowned string get_mount_directory ();
public bool get_on_classic ();
public unowned string get_os_id ();
public unowned string get_os_version ();
public unowned string get_series ();
[Version (since = "1.7")]
public unowned string? get_store ();
public unowned string get_version ();
public string binaries_directory { get; construct; }
public Snapd.SystemConfinement confinement { get; construct; }
public string kernel_version { get; construct; }
public bool managed { get; construct; }
public string mount_directory { get; construct; }
public bool on_classic { get; construct; }
public string os_id { get; construct; }
public string os_version { get; construct; }
public string series { get; construct; }
public string store { get; construct; }
public string version { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_task_get_type ()")]
[Version (since = "1.0")]
public class Task : GLib.Object {
[CCode (has_construct_function = false)]
protected Task ();
public unowned string get_id ();
public unowned string get_kind ();
public int64 get_progress_done ();
[Version (since = "1.5")]
public unowned string get_progress_label ();
public int64 get_progress_total ();
[Version (deprecated = true, deprecated_since = "1.5", since = "1.0")]
public bool get_ready ();
public unowned GLib.DateTime? get_ready_time ();
public unowned GLib.DateTime get_spawn_time ();
public unowned string get_status ();
public unowned string get_summary ();
public string id { get; construct; }
public string kind { get; construct; }
public int64 progress_done { get; construct; }
public string progress_label { get; construct; }
public int64 progress_total { get; construct; }
public bool ready { get; construct; }
public GLib.DateTime ready_time { get; construct; }
public GLib.DateTime spawn_time { get; construct; }
public string status { get; construct; }
public string summary { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", type_id = "snapd_user_information_get_type ()")]
[Version (since = "1.3")]
public class UserInformation : GLib.Object {
[CCode (has_construct_function = false)]
protected UserInformation ();
[Version (since = "1.26")]
public unowned Snapd.AuthData? get_auth_data ();
[Version (since = "1.26")]
public unowned string get_email ();
[Version (since = "1.26")]
public int64 get_id ();
[CCode (array_length = false, array_null_terminated = true)]
public unowned string[] get_ssh_keys ();
public unowned string get_username ();
public Snapd.AuthData auth_data { get; construct; }
public string email { get; construct; }
public int64 id { get; construct; }
[CCode (array_length = false, array_null_terminated = true)]
public string[] ssh_keys { get; construct; }
public string username { get; construct; }
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", cprefix = "SNAPD_ALIAS_STATUS_", type_id = "snapd_alias_status_get_type ()")]
[Version (since = "1.8")]
public enum AliasStatus {
UNKNOWN,
DEFAULT,
ENABLED,
DISABLED,
AUTO,
MANUAL
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", cprefix = "SNAPD_CHANGE_FILTER_", type_id = "snapd_change_filter_get_type ()")]
[Version (since = "1.29")]
public enum ChangeFilter {
ALL,
IN_PROGRESS,
READY
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", cprefix = "SNAPD_CONFINEMENT_", type_id = "snapd_confinement_get_type ()")]
[Version (since = "1.0")]
public enum Confinement {
UNKNOWN,
STRICT,
DEVMODE,
CLASSIC
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", cprefix = "SNAPD_CREATE_USER_FLAGS_", type_id = "snapd_create_user_flags_get_type ()")]
[Flags]
[Version (since = "1.3")]
public enum CreateUserFlags {
NONE,
SUDO,
KNOWN
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", cprefix = "SNAPD_DAEMON_TYPE_", type_id = "snapd_daemon_type_get_type ()")]
[Version (since = "1.9")]
public enum DaemonType {
NONE,
UNKNOWN,
SIMPLE,
FORKING,
ONESHOT,
DBUS,
NOTIFY
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", cprefix = "SNAPD_FIND_FLAGS_", type_id = "snapd_find_flags_get_type ()")]
[Flags]
[Version (since = "1.0")]
public enum FindFlags {
NONE,
MATCH_NAME,
SELECT_PRIVATE,
SELECT_REFRESH
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", cprefix = "SNAPD_GET_APPS_FLAGS_", type_id = "snapd_get_apps_flags_get_type ()")]
[Flags]
[Version (since = "1.25")]
public enum GetAppsFlags {
NONE,
SELECT_SERVICES
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", cprefix = "SNAPD_INSTALL_FLAGS_", type_id = "snapd_install_flags_get_type ()")]
[Flags]
[Version (since = "1.12")]
public enum InstallFlags {
NONE,
CLASSIC,
DANGEROUS,
DEVMODE,
JAILMODE
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", cprefix = "SNAPD_SNAP_STATUS_", type_id = "snapd_snap_status_get_type ()")]
[Version (since = "1.0")]
public enum SnapStatus {
UNKNOWN,
AVAILABLE,
PRICED,
INSTALLED,
ACTIVE
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", cprefix = "SNAPD_SNAP_TYPE_", type_id = "snapd_snap_type_get_type ()")]
[Version (since = "1.0")]
public enum SnapType {
UNKNOWN,
APP,
KERNEL,
GADGET,
OS
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", cprefix = "SNAPD_SYSTEM_CONFINEMENT_", type_id = "snapd_system_confinement_get_type ()")]
[Version (since = "1.15")]
public enum SystemConfinement {
UNKNOWN,
STRICT,
PARTIAL
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", cprefix = "SNAPD_ERROR_")]
[Version (since = "1.0")]
public errordomain Error {
CONNECTION_FAILED,
WRITE_FAILED,
READ_FAILED,
BAD_REQUEST,
BAD_RESPONSE,
AUTH_DATA_REQUIRED,
AUTH_DATA_INVALID,
TWO_FACTOR_REQUIRED,
TWO_FACTOR_INVALID,
PERMISSION_DENIED,
FAILED,
TERMS_NOT_ACCEPTED,
PAYMENT_NOT_SETUP,
PAYMENT_DECLINED,
ALREADY_INSTALLED,
NOT_INSTALLED,
NO_UPDATE_AVAILABLE,
PASSWORD_POLICY_ERROR,
NEEDS_DEVMODE,
NEEDS_CLASSIC,
NEEDS_CLASSIC_SYSTEM,
BAD_QUERY,
NETWORK_TIMEOUT,
NOT_FOUND,
NOT_IN_STORE;
public static GLib.Quark quark ();
}
[CCode (cheader_filename = "snapd-glib/snapd-glib.h", instance_pos = 3.9)]
[Version (since = "1.0")]
public delegate void ProgressCallback (Snapd.Client client, Snapd.Change change, void* deprecated);
[CCode (cheader_filename = "snapd-glib/snapd-glib.h")]
[Version (deprecated = true, deprecated_since = "1.34", since = "1.0")]
public static async Snapd.AuthData login_async (string username, string password, string? otp, GLib.Cancellable? cancellable) throws GLib.Error;
[CCode (cheader_filename = "snapd-glib/snapd-glib.h")]
[Version (deprecated = true, deprecated_since = "1.34", since = "1.0")]
public static Snapd.AuthData login_sync (string username, string password, string? otp, GLib.Cancellable? cancellable = null) throws GLib.Error;
}
|