Resources
Object Hierarchy:
Description:
[
CCode ( type_id =
"osinfo_resources_get_type ()" ) ]
public class Resources :
Entity
Content:
Properties:
- public string architecture { get; construct; }
The target hardware architecture to which these resources applies.
- public int64 cpu { get; set; }
The CPU frequency in hertz (Hz).
- public int n_cpus { get; set; }
The number of CPUs.
- public int64 ram { get; set; }
The amount of Random Access Memory (RAM) in bytes.
- public int64 storage { get; set; }
The amount of storage space in bytes.
Creation methods:
- public Resources (string id, string architecture)
Methods:
- public unowned string get_architecture ()
Retrieves the target hardware architecture to which
this applies.
- public int64 get_cpu ()
Retrieves the CPU frequency in hertz (Hz).
- public int get_n_cpus ()
Retrieves the number of CPUs.
- public int64 get_ram ()
Retrieves the amount of Random Access Memory (RAM) in bytes.
- public int64 get_storage ()
Retrieves the amount of storage space in bytes.
- public void set_cpu (int64 cpu)
Sets the CPU frequency.
- public void set_n_cpus (int n_cpus)
Sets the number of CPUs.
- public void set_ram (int64 ram)
Sets the amount of RAM in bytes.
- public void set_storage (int64 storage)
Sets the amount of storage space.
Inherited Members:
All known members inherited from class Osinfo.Entity
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref