/* * * sgc_server.h * Description: * sgc over MRPC * * * GPL LICENSE SUMMARY * * Copyright(c) 2016-2019 Intel Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. * The full GNU General Public License is included in this distribution * in the file called LICENSE.GPL. * * Contact Information: * Intel Corporation * 2200 Mission College Blvd. * Santa Clara, CA 97052 */ #ifndef __SGC_SERVER_H__ #define __SGC_SERVER_H__ struct sgc_funcs { int(*PPSGC_Db_AllocGroupCounterId)(unsigned short *); int(*PPSGC_Db_ReleaseGroupCounterId)(unsigned short); int(*PPSGC_Db_DeleteGroupCounterSessions)(unsigned short); int(*PPSGC_Db_GetGroupCounterAmount)(struct PpsgcGroupCounters *); int(*PPSGC_Db_GetIfCounters)(struct PpsgcIfCounters *); int(*PPSGC_Db_GetSfCounters)(struct PpsgcSfCounters *); int(*PPSGC_Db_GetTpPortCounters)(struct PpsgcTpPortCounters *); int(*PPSGC_Db_PrintTpPortCounters)(void); int(*PPSGC_Db_PrintIfCounters)(void); int(*PPSGC_Db_PrintGroupCounters)(void); int(*PPSGC_Db_RestartGroupCounterId)(unsigned short); int(*PPSGC_Db_ReleaseGroupCounterIdsTable)(struct PpsgcGroupCountersTable *); int(*PPSGC_Db_DeleteGroupCountersTableSessions)(struct PpsgcGroupCountersSessionsToDel *); }; int mrpc_sgc_server_register(struct sgc_funcs *callbacks); void mrpc_sgc_server_unregister(void); #endif /* __SGC_SERVER_H__ */