Commit b520f6a9 authored by claes's avatar claes

Added atribute buf_id in gdb_sNode to handle buffer id on subscriptions

parent b1735f8b
/* /*
* Proview $Id: rt_gdb.c,v 1.7 2005-11-14 16:28:52 claes Exp $ * Proview $Id: rt_gdb.c,v 1.8 2006-03-20 06:57:35 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -504,6 +504,7 @@ gdb_AddNode ( ...@@ -504,6 +504,7 @@ gdb_AddNode (
if (np == NULL) return NULL; if (np == NULL) return NULL;
np->nid = nid; np->nid = nid;
np->buf_id = 1; /* Next available buffer id */
pool_Qinit(NULL, gdbroot->pool, &np->nid_htl); pool_Qinit(NULL, gdbroot->pool, &np->nid_htl);
pool_Qinit(NULL, gdbroot->pool, &np->nod_ll); pool_Qinit(NULL, gdbroot->pool, &np->nod_ll);
......
/* /*
* Proview $Id: rt_gdb.h,v 1.11 2005-10-07 05:57:28 claes Exp $ * Proview $Id: rt_gdb.h,v 1.12 2006-03-20 06:57:20 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -929,6 +929,7 @@ typedef struct { ...@@ -929,6 +929,7 @@ typedef struct {
pool_sQlink nodsubs_lh; /**< Header of list servers for this node. */ pool_sQlink nodsubs_lh; /**< Header of list servers for this node. */
pool_sQlink nodsubb_lh; /**< Header of list of buffer for this node. */ pool_sQlink nodsubb_lh; /**< Header of list of buffer for this node. */
pwr_tUInt32 buf_id; /**< Next available buffer id */
/* Subscribed alarm and block notification. */ /* Subscribed alarm and block notification. */
......
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