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

Reorganize the headers to isolate the nonstandard routines #6

Merged
merged 2 commits into from
Apr 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2021, PMIx
Copyright (c) 2021-2022, PMIx
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
29 changes: 27 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
# pmix-abi
PMIx Headers for ABI Compatibility
# PMIx Standard ABI Headers

## Layout of the headers

* `pmix_types.h` : PMIx Standard types, constants, and callback functions
* `pmix_macros.h` : PMIx Standard macros
* `pmix_abi_support.h` : Non-standard support functions (prefixed with `pmixabi_`) to support the macro definitions
* `pmix_abi_support_bottom.h` : Non-standard support functions (prefixed with `pmixabi_`) to support the macro definitions. These few functions also use the macros. As such, they need to be included at the bottom of `pmix_macros.h`
* `pmix_fns.h` : PMIx Standard API function pointer declarations for PMIx Standard APIs
* The goal of this header to ease the incorporation of PMIx routines for applications and tools that wish to `dlopen()` a PMIx Standard compliant library and then `dlsym()` the various functions.


```mermaid
flowchart TB
subgraph macros["pmix_macros.h"]
direction TB
s1["pmix_abi_support.h (Non-Standard)"] --- mid["PMIx Standard Macros"]
mid --- s2["pmix_abi_support_bottom.h (Non-Standard)"]
end
pmix_types.h == Included by ==> macros
macros == Included by ==> pmix_fns.h
macros == Included by ==> pmix.h
```

## Using dlopen/dlsym

If your application intends to use the headers with `dlopen()` and `dlsym()` then the `pmix_fns.h` header is all that you need to include to use the PMIx Standard interface. The function pointer signatures are defined in `pmix_fns.h` in a form approprate for `dlsym()`
681 changes: 681 additions & 0 deletions pmix.h

Large diffs are not rendered by default.

Loading