Changeset a459a2a19cd0f110f245f6c1cbf0a39f6f2a6dad

Show
Ignore:
Timestamp:
03/06/10 17:18:48 (5 months ago)
Author:
Nedko Arnaudov <nedko@…>
Children:
c2f277228ed93d3377c520fa75ba53e51c484254
Parents:
2fd730ea55ee6a1df6b457076c67e4a8edae0580
git-committer:
Nedko Arnaudov <nedko@arnaudov.name> / 2010-03-06T17:18:48Z+0200
Message:

Use opath as primary identification of rooms in studio rooms list

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • daemon/studio.c

    r2fd730e ra459a2a  
    796796      goto fail_unref; 
    797797 
    798     if (!dbus_message_iter_append_basic(&struct_iter, DBUS_TYPE_STRING, &name)) 
     798    if (!dbus_message_iter_append_basic(&struct_iter, DBUS_TYPE_STRING, &opath)) 
    799799      goto fail_unref; 
    800800 
     
    805805      goto fail_unref; 
    806806 
    807     if (!dbus_maybe_add_dict_entry_string(&dict_iter, "opath", opath)) 
     807    if (!dbus_maybe_add_dict_entry_string(&dict_iter, "name", name)) 
    808808      goto fail_unref; 
    809809 
     
    884884 
    885885METHOD_ARGS_BEGIN(GetRoomList, "Get list of rooms in this studio") 
    886   METHOD_ARG_DESCRIBE_OUT("room_list", "a(sa{sv})", "List of studio rooms, name and properties") 
     886  METHOD_ARG_DESCRIBE_OUT("room_list", "a(sa{sv})", "List of studio rooms: opaths and properties") 
    887887METHOD_ARGS_END 
    888888 
  • ladish_control

    r8475365 ra459a2a  
    261261                    for room in studio_iface.GetRoomList(): 
    262262                        #print repr(room) 
    263                         name = room[0] 
     263                        opath = room[0] 
     264                        name = room[1]["name"] 
    264265                        if room[1].has_key("template"): 
    265266                            template = str(room[1]["template"]) 
     
    268269 
    269270                        if template: 
    270                             print('"%s" from template "%s"' % (name, template)) 
     271                            print('"%s" from template "%s" (%s)' % (name, template, opath)) 
    271272                        else: 
    272                             print('"%s"' % name) 
     273                            print('"%s" (%s)' % (name, opath)) 
    273274                elif arg == 'sdelroom': 
    274275                    print("--- studio room delete")