MCPcopy Create free account
hub / github.com/OpenBoardView/OpenBoardView / Close

Method Close

src/openboardview/Annotations.cpp:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool Annotations::Close() {
76 int r = sqlite3_close(sqldb);
77 sqldb = nullptr;
78
79 if (r != SQLITE_OK) {
80 SDL_LogError(SDL_LOG_CATEGORY_ERROR, "%s", "Annotations database could not be closed");
81 return false;
82 }
83
84 return true;
85}
86
87bool Annotations::GenerateList() {
88 static const char sql[] = "SELECT id,side,posx,posy,net,part,pin,note FROM annotations WHERE visible=1;";

Callers 2

~BoardViewMethod · 0.80
LoadFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected