After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 746679 - Its not possible to programatically set the serial number
Its not possible to programatically set the serial number
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: librygel-core
git master
Other All
: Normal normal
: ---
Assigned To: rygel-maint
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2015-03-24 10:50 UTC by Richard Röjfors
Modified: 2015-04-05 10:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch adding a setter for the serial number (967 bytes, patch)
2015-03-24 10:50 UTC, Richard Röjfors
committed Details | Review

Description Richard Röjfors 2015-03-24 10:50:22 UTC
Created attachment 300190 [details] [review]
Patch adding a setter for the serial number

The attached patch adds a setter for the serial number.
Comment 1 Jens Georg 2015-03-24 11:30:44 UTC
Is there a use-case for doing this programmatically instead of modifying the deployed device template?

Does the serial number change during the life-time of the device?
Comment 2 Richard Röjfors 2015-03-24 12:19:10 UTC
In the case I'm working at the serial number is stored far away from the file system. During production the units will all have the same file system. During start of rygel the serial is read from the storage location and the xml is modified and put in a R/W area.

The .xml needs to be updated multiple time during the device lifetime since the template might change during a firmware update.

Another program could be written to update the .xml, but that overhead is quite big compared to add in this setter. 

...and there are setters for other tags already like modelNumber and modelDescription, so of symmetry reasons this could be nice too ;)