OLD | NEW |
1 /* | 1 /* |
2 * | 2 * |
3 * D-Bus++ - C++ bindings for D-Bus | 3 * D-Bus++ - C++ bindings for D-Bus |
4 * | 4 * |
5 * Copyright (C) 2005-2007 Paolo Durante <shackan@gmail.com> | 5 * Copyright (C) 2005-2007 Paolo Durante <shackan@gmail.com> |
6 * | 6 * |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 Xml::Nodes signals = iface["signal"]; | 144 Xml::Nodes signals = iface["signal"]; |
145 Xml::Nodes properties = iface["property"]; | 145 Xml::Nodes properties = iface["property"]; |
146 Xml::Nodes ms; | 146 Xml::Nodes ms; |
147 ms.insert(ms.end(), methods.begin(), methods.end()); | 147 ms.insert(ms.end(), methods.begin(), methods.end()); |
148 ms.insert(ms.end(), signals.begin(), signals.end()); | 148 ms.insert(ms.end(), signals.begin(), signals.end()); |
149 | 149 |
150 // gets the name of a interface: <interface name="XYZ"> | 150 // gets the name of a interface: <interface name="XYZ"> |
151 string ifacename = iface.get("name"); | 151 string ifacename = iface.get("name"); |
152 | 152 |
153 // these interface names are skipped. | 153 // these interface names are skipped. |
154 » » if (ifacename == "org.freedesktop.DBus.Introspectable" | 154 » » if (ifacename == "org.freedesktop.DBus.Introspectable") |
155 » » » » ||ifacename == "org.freedesktop.DBus.Properties"
) | |
156 { | 155 { |
157 cerr << "skipping interface " << ifacename << endl; | 156 cerr << "skipping interface " << ifacename << endl; |
158 continue; | 157 continue; |
159 } | 158 } |
160 | 159 |
161 istringstream ss(ifacename); | 160 istringstream ss(ifacename); |
162 string nspace; | 161 string nspace; |
163 unsigned int nspaces = 0; | 162 unsigned int nspaces = 0; |
164 | 163 |
165 // prints all the namespaces defined with <interface name="X.Y.Z
"> | 164 // prints all the namespaces defined with <interface name="X.Y.Z
"> |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 { | 502 { |
504 cerr << "unable to write file " << filename << endl; | 503 cerr << "unable to write file " << filename << endl; |
505 exit(-1); | 504 exit(-1); |
506 } | 505 } |
507 | 506 |
508 file << head.str (); | 507 file << head.str (); |
509 file << body.str (); | 508 file << body.str (); |
510 | 509 |
511 file.close(); | 510 file.close(); |
512 } | 511 } |
OLD | NEW |