-
Notifications
You must be signed in to change notification settings - Fork 15.1k
winpr: move ndr routines from rdpear to winpr #11588
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
base: master
Are you sure you want to change the base?
Conversation
Refer to this link for build results (access rights to CI server needed): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When moving to public API we should prefix the functions with winpr
or similar to make them unique.
clang-tidy review says "All clean, LGTM! 👍" |
winpr/include/winpr/ndr.h
Outdated
extern WINPR_API const NdrMessageDescr ndr_##LOWER##_descr_s; \ | ||
WINPR_API NdrMessageType ndr_##LOWER##_descr(void) | ||
|
||
#define NDR_ARRAY_OF_TYPE_DECL(TYPE, UPPERTYPE) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe also remove the macros from public headers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The macros are used in this header. And usually when you want to declare a new type you'll want to use them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but in public headers it is better not to expose stuff that should not be used outside.
The declarations can just be inserted directly (not that many anyway)
5f6693d
to
6949f16
Compare
Refer to this link for build results (access rights to CI server needed): |
6949f16
to
d8c3078
Compare
Refer to this link for build results (access rights to CI server needed): |
d8c3078
to
e27eda3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're moving the types to the public API
some doxygen would be nice, with @since version 3.16.0
at least.
winpr/include/winpr/ndr.h
Outdated
{ | ||
#endif | ||
|
||
typedef struct NdrContext_s NdrContext; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefixing should also be done for types/macros/... (same issue as with functions, we want to avoid clashing with other implementations)
Refer to this link for build results (access rights to CI server needed): |
e27eda3
to
8d2c143
Compare
I've done the renamings but I've seen things I'd like to fix for a public API. |
Refer to this link for build results (access rights to CI server needed): |
This patch makes public NDR routines and split the NdrContext to a NDR encoder and a NDR decoder. All the related functions are modified accordingly.
8d2c143
to
927825a
Compare
No description provided.