Commit 6a1c7614 authored by claes's avatar claes

New msg_id paramater in net_Put call

parent b77811ec
/*
* Proview $Id: rt_sancm.c,v 1.2 2005-09-01 14:57:56 claes Exp $
* Proview $Id: rt_sancm.c,v 1.3 2006-03-20 07:17:55 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -89,7 +89,7 @@ sancm_Add (
if (i >= count) {
ap->count = count;
gdb_Unlock;
net_Put(NULL, &tgt, ap, net_eMsg_sanAdd, pwr_Offset(ap, sane[i]));
net_Put(NULL, &tgt, ap, net_eMsg_sanAdd, 0, pwr_Offset(ap, sane[i]));
gdb_Lock;
i = 0;
}
......@@ -102,7 +102,7 @@ sancm_Add (
if (i > 0) {
ap->count = i;
gdb_Unlock;
net_Put(NULL, &tgt, ap, net_eMsg_sanAdd, pwr_Offset(ap, sane[i]));
net_Put(NULL, &tgt, ap, net_eMsg_sanAdd, 0, pwr_Offset(ap, sane[i]));
gdb_Lock;
}
......@@ -260,7 +260,7 @@ sancm_Remove (
if (i >= count) {
rp->count = count;
gdb_Unlock;
net_Put(NULL, &tgt, rp, net_eMsg_sanRemove, pwr_Offset(rp, sid[i]));
net_Put(NULL, &tgt, rp, net_eMsg_sanRemove, 0, pwr_Offset(rp, sid[i]));
gdb_Lock;
i = 0;
}
......@@ -273,7 +273,7 @@ sancm_Remove (
if (i > 0) {
rp->count = count;
gdb_Unlock;
net_Put(NULL, &tgt, rp, net_eMsg_sanRemove, pwr_Offset(rp, sid[i]));
net_Put(NULL, &tgt, rp, net_eMsg_sanRemove, 0, pwr_Offset(rp, sid[i]));
gdb_Lock;
}
......@@ -328,7 +328,7 @@ sancm_Update (
}
gdb_Unlock;
errh_Info("sancm_Update, sent removed count %d", rp->count);
net_Put(NULL, &tgt, rp, net_eMsg_sanRemove, size);
net_Put(NULL, &tgt, rp, net_eMsg_sanRemove, 0, size);
gdb_Lock;
free(rp);
}
......
/*
* Proview $Id: rt_sansm.c,v 1.2 2005-09-01 14:57:56 claes Exp $
* Proview $Id: rt_sansm.c,v 1.3 2006-03-20 07:18:29 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -347,7 +347,7 @@ sansm_Update (
#if 0
errh_Info("sansm_Update, put %d to %s", up->count, np->name);
#endif
net_Put(&sts, &tgt, up, net_eMsg_sanUpdate, pwr_Offset(up, data[i]));
net_Put(&sts, &tgt, up, net_eMsg_sanUpdate, 0, pwr_Offset(up, data[i]));
gdb_Lock;
if (EVEN(sts)) return 0;
......
/*
* Proview $Id: rt_subcm.c,v 1.5 2005-12-13 15:14:27 claes Exp $
* Proview $Id: rt_subcm.c,v 1.6 2006-03-20 07:21:22 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -262,7 +262,7 @@ subcm_Data (
} gdb_ScopeUnlock;
if (rp != NULL) {
net_Put(NULL, &tgt, rp, net_eMsg_subRemove, pwr_Offset(rp, sid[rp->count]));
net_Put(NULL, &tgt, rp, net_eMsg_subRemove, 0, pwr_Offset(rp, sid[rp->count]));
#if 0
errh_Info("Removed %d subscriptions", rp->count - 1);
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment