Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: tools/generate_adaptor.cpp

Issue 6015015: Allow methods and signals on the org.freedesktop.DBus.Properties interface. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/dbus-cplusplus.git@master
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698