Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [DBus (name = "org.freedesktop.ModemManager1.Modem.Modem3gpp")]
- public interface ModemInterface : GLib.Object {
- public abstract string Imei { owned get; }
- }
- private ModemInterface modem;
- int main () {
- try {
- modem = Bus.get_proxy_sync (BusType.SYSTEM,
- "org.freedesktop.ModemManager1",
- "/org/freedesktop/ModemManager1/Modem/1");
- string i = modem.Imei;
- stdout.printf("Imei = %s" + "\n",i);
- var loop = new MainLoop ();
- loop.run ();
- } catch (IOError e) {
- stderr.printf ("%s\n", e.message);
- return 1;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment