-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
156 additions
and
29 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
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
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-FileCopyrightText: 2023 The Naja authors <https://github.com/najaeda/naja/blob/main/AUTHORS> | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#include "PySNLNetComponents.h" | ||
|
||
#include "PyInterface.h" | ||
#include "PySNLNetComponent.h" | ||
|
||
namespace PYSNL { | ||
|
||
using namespace naja::SNL; | ||
|
||
PyTypeContainerObjectDefinitions(SNLNetComponents) | ||
PyTypeContainerObjectDefinitions(SNLNetComponentsIterator) | ||
|
||
PyContainerMethods(SNLNetComponent, SNLNetComponents) | ||
|
||
} |
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,35 @@ | ||
// SPDX-FileCopyrightText: 2024 The Naja authors <https://github.com/najaeda/naja/blob/main/AUTHORS> | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#ifndef __PY_SNL_NET_COMPONENTS_H_ | ||
#define __PY_SNL_NET_COMPONENTS_H_ | ||
|
||
#include <Python.h> | ||
#include "NajaCollection.h" | ||
|
||
namespace naja::SNL { | ||
class SNLNetComponent; | ||
} | ||
|
||
namespace PYSNL { | ||
|
||
typedef struct { | ||
PyObject_HEAD | ||
naja::NajaCollection<naja::SNL::SNLNetComponent*>* object_; | ||
} PySNLNetComponents; | ||
|
||
typedef struct { | ||
PyObject_HEAD | ||
naja::NajaCollection<naja::SNL::SNLNetComponent*>::Iterator* object_; | ||
PySNLNetComponents* container_; | ||
} PySNLNetComponentsIterator; | ||
|
||
extern PyTypeObject PyTypeSNLNetComponents; | ||
extern PyTypeObject PyTypeSNLNetComponentsIterator; | ||
|
||
extern void PySNLNetComponents_LinkPyType(); | ||
|
||
} /* PYSNL namespace */ | ||
|
||
#endif /* __PY_SNL_NET_COMPONENTS_H_ */ |
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