Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sharpd: Add start of global data structures
We have a bit of a mess with globals in the sharp daemon. Let's start formalizing it a bit. Future commits will take advantage of this, as that we need to have the ability to start dumping stats about commands we have issued. These changes will be useful for debugging and understanding what is going on. Signed-off-by: Donald sharp <sharpd@cumulusnetworks.com>
- Loading branch information
1 parent
a60ffbc
commit d21f1a9
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* SHARP - code to track globals | ||
* Copyright (C) 2019 Cumulus Networks, Inc. | ||
* Donald Sharp | ||
* | ||
* This file is part of FRR. | ||
* | ||
* FRR is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2, or (at your option) any | ||
* later version. | ||
* | ||
* FRR 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; see the file COPYING; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
#ifndef __SHARP_GLOBAL_H__ | ||
#define __SHARP_GLOBAL_H__ | ||
|
||
struct sharp_global { | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters