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

uadk: adjust internal file include relationships #529

Merged
merged 3 commits into from
Nov 28, 2022
Merged

uadk: adjust internal file include relationships #529

merged 3 commits into from
Nov 28, 2022

Conversation

Liulongfang
Copy link
Collaborator

@Liulongfang Liulongfang commented Nov 12, 2022

The file inclusion relationship in the current uadk is confusing, and there are multiple repeated inclusions, which leads to confusion in the internal inclusion relationship.

On the adjusted UADK, I divide UADK users into two categories: business users and developer users.
Business users only need to pay attention to how to use UADK to perform data acceleration services.
Developer users only need to focus on adapting their devices to the UADK framework.

According to the different demands of these two types of users on UADK, the external interface is divided into two different headers. In this way, business users only need to obtain the required interface through “wd.h“ to fully realize their own acceleration business, and do not need to pay attention to how the device they use is driven. Developer users only need to use ”wd_util.h“ to obtain the interface required to adapt a device driver to uadk, without paying attention to how their own devices are used by users.
In this way, both types of users only need to learn and understand the interfaces in their respective header files to complete their demands.

PR reviewed before: #527
This PR rebased on: #520

@gaozhangfei
Copy link
Collaborator

There is uadk_file_relationship.svg, is that required?
do we need to update this file when it is changed later?

@Liulongfang
Copy link
Collaborator Author

There is uadk_file_relationship.svg, is that required? do we need to update this file when it is changed later?

This svg diagram is added to save the current file relationship diagram so that users can understand its structure.
At present, our file structure will not be changed after this modification. If there is an important update, it can be modified.

@gaozhangfei
Copy link
Collaborator

This svg diagram is added to save the current file relationship diagram so that users can understand its structure.
At present, our file structure will not be changed after this modification. If there is an important update, it can be modified.

it will be destined to be outdated since it is too concrete.
It is meanless to update this file every time, and in fact nobody cares about this relation.
If you think it is essential, we can add the cmd on generating this pic instead.

@Liulongfang Liulongfang reopened this Nov 15, 2022
@Liulongfang
Copy link
Collaborator Author

This svg diagram is added to save the current file relationship diagram so that users can understand its structure.
At present, our file structure will not be changed after this modification. If there is an important update, it can be modified.

it will be destined to be outdated since it is too concrete. It is meanless to update this file every time, and in fact nobody cares about this relation. If you think it is essential, we can add the cmd on generating this pic instead.

If it is possible to generate this relationship diagram through a command, that is fine. What is this command?

@gaozhangfei
Copy link
Collaborator

I don't know, how do you get this pic?
Some examples using cflow.

@gaozhangfei
Copy link
Collaborator

Anyway, it's only my opinion no need to maintain this relationship pic, it is up to you.
Others are OK
+1

@Liulongfang
Copy link
Collaborator Author

I don't know, how do you get this pic? Some examples using cflow.

This pic is drawn by myself, not generated by command

@Liulongfang
Copy link
Collaborator Author

Anyway, it's only my opinion no need to maintain this relationship pic, it is up to you. Others are OK +1

My opinion is to keep it, after all, it is still beneficial for UADK users to understand UADK's software framework.
Thanks.

liulongfang added 3 commits November 25, 2022 17:07
In the current UADK software framework, because each module
owner processes the code separately when editing the code,
the header file inclusion processing during editing is not
perfect, and there are repeatedly included header files,
which need to be deleted.

Signed-off-by: liulongfang <liulongfang@huawei.com>
Adjust the header file inclusion logic to ensure that the data
structures used internally are not exposed to the outside world.

Also, remove unused header file wd_common.h

Signed-off-by: liulongfang <liulongfang@huawei.com>
Clarify the file relationship diagram of UADK, follow-up UADK
framework evolution, continue to ensure that the logic of the
basic file inclusion relationship is reasonable.

Signed-off-by: Longfang Liu <liulongfang@huawei.com>
@haofang111
Copy link
Collaborator

/lgtm
+1

@hzhuang1
Copy link
Collaborator

hzhuang1 commented Nov 28, 2022

Ack

@hzhuang1 hzhuang1 merged commit 7187593 into Linaro:master Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants