Browse Source

proper terminal symbol for listing sessions

tags/v1.4.0
Nils 5 years ago
parent
commit
41d535f535
2 changed files with 11 additions and 4 deletions
  1. +5
    -0
      CHANGELOG
  2. +6
    -4
      src/nsmd.cpp

+ 5
- 0
CHANGELOG View File

@@ -1,3 +1,8 @@
v1.4
Fixed reply for listing sessions from a plain "Done." to proper reply path with empty string as terminal symbol "/reply", "/nsm/server/list", ""
/nsm/server/list "" raises NSM_API_VERSION_MINOR from 1 to 2 (1.1 -> 1.2)
Fix operation reply to last treated client instead to reply to sender (houston/mathieu picot)

v1.3.2 v1.3.2
Rename new-session-manager executable to nsm-legacy-gui to prevent future confusion. Rename new-session-manager executable to nsm-legacy-gui to prevent future confusion.




+ 6
- 4
src/nsmd.cpp View File

@@ -68,7 +68,7 @@ static int session_lock_fd = 0;
static char *session_root; static char *session_root;


#define NSM_API_VERSION_MAJOR 1 #define NSM_API_VERSION_MAJOR 1
#define NSM_API_VERSION_MINOR 1
#define NSM_API_VERSION_MINOR 2


#define ERR_OK 0 #define ERR_OK 0
#define ERR_GENERAL_ERROR -1 #define ERR_GENERAL_ERROR -1
@@ -1589,9 +1589,11 @@ OSC_HANDLER( list )


ftw( session_root, list_file, 20 ); ftw( session_root, list_file, 20 );


osc_server->send( lo_message_get_source( msg ), path,
ERR_OK,
"Done." );
// osc_server->send( lo_message_get_source( msg ), path, ERR_OK, "Done." );

// As marker that all sessions were sent reply with an empty string, which is impossible to conflict with a session name
osc_server->send( list_response_address, "/reply", "/nsm/server/list", "" );
return 0; return 0;
} }




Loading…
Cancel
Save