Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take pointer of types #6

Open
lynnporu opened this issue Dec 26, 2021 · 0 comments
Open

Take pointer of types #6

lynnporu opened this issue Dec 26, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@lynnporu
Copy link
Owner

Some mechanism of taking pointer of the types should be possible. The example is below.

C code:

/* @enum my_enum
 * @type int
 * @member value1 1
 * @member value2 2
 */
typedef enum {VALUE1 = 1, VALUE2 = 2} my_enum_t;

Python code:

lib.my_enum  # evaluates to ctypes.c_int type
lib.my_enum.ref  # evaluates to ctypes.LP_c_int
@lynnporu lynnporu added the enhancement New feature or request label Dec 26, 2021
@lynnporu lynnporu added this to the 1.1 release milestone Dec 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant