reporting only on specific device
r1262 | dcl | 2006-11-09 11:06:34 +1100 (Thu, 09 Nov 2006) | 2 lines
This commit is contained in:
@@ -458,12 +458,12 @@ void sock_send(int n, BUFFER* bp)
|
||||
* \param bp pointer to buffer containing report
|
||||
* \param match value to match for this report
|
||||
*/
|
||||
void sock_report(BUFFER* bp, int match)
|
||||
void sock_report(BUFFER* bp, int match, void* dev)
|
||||
{
|
||||
int i;
|
||||
for (i = 1; i < num_fds; ++i)
|
||||
{
|
||||
if (fdv[i].match == match)
|
||||
if (fdv[i].match == match && fdv[i].device == dev)
|
||||
sock_send(i, bp);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ void sock_line(int n);
|
||||
void sock_input(int n);
|
||||
void sock_accept(int n);
|
||||
void sock_send(int n, BUFFER* buffer);
|
||||
void sock_report(BUFFER* bp, int match);
|
||||
void sock_report(BUFFER* bp, int match, void* dev);
|
||||
void sock_set_match(int n, int match);
|
||||
void sock_ok(int n);
|
||||
void sock_err(int n);
|
||||
|
||||
Reference in New Issue
Block a user