diff options
| author | James Willcox <snopr@snorp.net> | 2006-03-09 20:27:47 +0000 | 
|---|---|---|
| committer | James Willcox <snopr@snorp.net> | 2006-03-09 20:27:47 +0000 | 
| commit | c809f13a12f9ac155ae6c49b73a931714b70b4dc (patch) | |
| tree | 8de9038f347a0e6ad9e6fe460f567b520fbc70fc | |
| parent | 65966c9895d70210b5a5ad10330a81eb3cee4b95 (diff) | |
add an 'Error' property to ClientStateArgs
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1177 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
| -rw-r--r-- | avahi-sharp/Client.cs | 11 | 
1 files changed, 9 insertions, 2 deletions
diff --git a/avahi-sharp/Client.cs b/avahi-sharp/Client.cs index 8ec6616..6d39469 100644 --- a/avahi-sharp/Client.cs +++ b/avahi-sharp/Client.cs @@ -52,15 +52,22 @@ namespace Avahi      public class ClientStateArgs : EventArgs      {          private ClientState state; +        private ErrorCode error;          public ClientState State          {              get { return state; }          } -        public ClientStateArgs (ClientState state) +        public ErrorCode Error +        { +            get { return error; } +        } + +        public ClientStateArgs (ClientState state, ErrorCode error)          {              this.state = state; +            this.error = error;          }      } @@ -349,7 +356,7 @@ namespace Avahi          private void OnClientCallback (IntPtr client, ClientState state, IntPtr userData)          {              if (StateChanged != null) -                StateChanged (this, new ClientStateArgs (state)); +                StateChanged (this, new ClientStateArgs (state, LastError));          }          private int OnPollCallback (IntPtr ufds, uint nfds, int timeout) {  | 
