Changes to stub code to add support for BAL2.4
diff --git a/device_simulator/bal_stub.h b/device_simulator/bal_stub.h
index 0bd30de..8108d6d 100644
--- a/device_simulator/bal_stub.h
+++ b/device_simulator/bal_stub.h
@@ -7,21 +7,25 @@
#define IND_USR_DAT_VAL "brcmOLT"
#define BALCLIENT "bal_client"
#define BALSERVER "bal_server"
+#define BAL_DEVICE_STR_LEN 20
/* A linked list (LL) node to store a queue entry */
struct QNode
{
- int obj_type;
- int status;
- struct QNode *next;
+ int obj_type;
+ char device_id[BAL_DEVICE_STR_LEN];
+ int status;
+ int intf_id;
+ int onu_id;
+ struct QNode *next;
};
-
+
/* The queue, front stores the front node of LL and rear stores ths
- last node of LL */
+ last node of LL */
typedef struct Queue
{
- struct QNode *front, *rear;
+ struct QNode *front, *rear;
}bal_queue;
/* shared queue */
@@ -29,6 +33,6 @@
void create_stub_thread();
bal_queue *createQueue();
-struct QNode* newNode(int objKey, int status);
-void enQueue(int objKey, int status);
+struct QNode* newNode(int objKey, int status, char *device_id);
+void enQueue(int objKey, struct QNode *temp);
struct QNode *deQueue();