applrefIface.h (882B)
1 /* 2 * 3 * 4 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 5 * 6 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 7 */ 8 #ifndef APPLREFIFACE_H 9 #define APPLREFIFACE_H 10 11 /** \struct to invoke a function in applref */ 12 typedef struct ApplRefFunction { 13 char *pname; /**< name of the function */ 14 char *pbriefdescr; /**< brief description of the function */ 15 char *pdescr; /**< description of the function */ 16 void *pf; /**< address of the function */ 17 18 /** to keep things symbol, we don't want to implement 19 inferior function call with dummy frame, 20 so a pre-defined dispatch function is enough to 21 convert char string to correct argument types. */ 22 23 int (*dispatch)(void*, int, char *[]); /**< dispatch function */ 24 } ApplRefFunction_t; 25 26 27 #endif