-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python module: support for checks on board
- Loading branch information
1 parent
5cff53c
commit e47e579
Showing
4 changed files
with
188 additions
and
27 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,12 @@ | ||
#pragma once | ||
#include <Python.h> | ||
#include "block/block.hpp" | ||
#include "board/board.hpp" | ||
#include "board/via_padstack_provider.hpp" | ||
#include "project/project.hpp" | ||
#include "pool/pool_cached.hpp" | ||
|
||
extern PyTypeObject BoardType; | ||
|
||
class BoardWrapper { | ||
public: | ||
BoardWrapper(const horizon::Project &prj); | ||
horizon::PoolCached pool; | ||
horizon::Block block; | ||
horizon::ViaPadstackProvider vpp; | ||
horizon::Board board; | ||
}; | ||
class BoardWrapper *create_board_wrapper(const horizon::Project &prj); | ||
|
||
typedef struct { | ||
PyObject_HEAD | ||
/* Type-specific fields go here. */ | ||
BoardWrapper *board; | ||
class BoardWrapper *board; | ||
} PyBoard; |
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