/[svn]/liblscp/trunk/src/device.c
ViewVC logotype

Diff of /liblscp/trunk/src/device.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 180 by capela, Tue Jul 6 20:20:51 2004 UTC revision 189 by capela, Thu Jul 8 16:31:47 2004 UTC
# Line 73  static lscp_driver_info_t *_lscp_driver_ Line 73  static lscp_driver_info_t *_lscp_driver_
73              pszToken = lscp_strtok(NULL, pszSeps, &(pch));              pszToken = lscp_strtok(NULL, pszSeps, &(pch));
74          }          }
75      }      }
76        else pDriverInfo = NULL;
77            
78      // Unlock this section down.      // Unlock this section down.
79      lscp_mutex_unlock(pClient->mutex);      lscp_mutex_unlock(pClient->mutex);
# Line 113  static lscp_device_info_t *_lscp_device_ Line 114  static lscp_device_info_t *_lscp_device_
114              pszToken = lscp_strtok(NULL, pszSeps, &(pch));              pszToken = lscp_strtok(NULL, pszSeps, &(pch));
115          }          }
116      }      }
117        else pDeviceInfo = NULL;
118    
119      // Unlock this section down.      // Unlock this section down.
120      lscp_mutex_unlock(pClient->mutex);      lscp_mutex_unlock(pClient->mutex);
# Line 153  static lscp_device_port_info_t *_lscp_de Line 155  static lscp_device_port_info_t *_lscp_de
155              pszToken = lscp_strtok(NULL, pszSeps, &(pch));              pszToken = lscp_strtok(NULL, pszSeps, &(pch));
156          }          }
157      }      }
158        else pDevicePortInfo = NULL;
159    
160      // Unlock this section down.      // Unlock this section down.
161      lscp_mutex_unlock(pClient->mutex);      lscp_mutex_unlock(pClient->mutex);
# Line 247  static lscp_param_info_t *_lscp_param_in Line 250  static lscp_param_info_t *_lscp_param_in
250              pszToken = lscp_strtok(NULL, pszSeps, &(pch));              pszToken = lscp_strtok(NULL, pszSeps, &(pch));
251          }          }
252      }      }
253        else pParamInfo = NULL;
254    
255      // Unlock this section down.      // Unlock this section down.
256      lscp_mutex_unlock(pClient->mutex);      lscp_mutex_unlock(pClient->mutex);
# Line 946  lscp_status_t lscp_set_midi_port_param ( Line 950  lscp_status_t lscp_set_midi_port_param (
950      return lscp_client_query(pClient, szQuery);      return lscp_client_query(pClient, szQuery);
951  }  }
952    
953    
954    //-------------------------------------------------------------------------
955    // Generic parameter list functions.
956    
957    const char *lscp_get_param_value ( lscp_param_t *pParams, const char *pszParam )
958    {
959        int i;
960        
961        for (i = 0; pParams && pParams[i].key; i++) {
962            if (strcasecmp(pParams[i].key, pszParam) == 0)
963                return (const char *) pParams[i].value;
964        }
965        return NULL;
966    }
967    
968    
969  // end of device.c  // end of device.c
970    

Legend:
Removed from v.180  
changed lines
  Added in v.189

  ViewVC Help
Powered by ViewVC