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

libc/stream:add putc interface for mtd/blk stream. #7715

Merged
merged 1 commit into from Nov 28, 2022

Conversation

XinStellaris
Copy link
Contributor

Signed-off-by: 田昕 tianxin7@xiaomi.com

Summary

add putc interface for mtd/blk stream

Impact

Should be none.

Testing

ESP32C3 tested.

Signed-off-by: 田昕 <tianxin7@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 9d48d86 into apache:master Nov 28, 2022
@XinStellaris XinStellaris deleted the add_stream_putc branch November 28, 2022 08:37
@@ -217,6 +227,7 @@ int lib_blkoutstream_open(FAR struct lib_blkoutstream_s *stream,
}

stream->inode = inode;
stream->public.put = blkoutstream_putc;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xiaoxiang781216 maybe stream method also should be putc? What do you think? I've seen that recently you done some clean-up and changes from putc to put, but do not know the reasons why we stay with put now

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's little bit inconsistent in the original code base:

  1. The user see the function as lib_stream_put or lib_outstream_s::put
  2. The implementation normally name xxx_putc as statical function

Do you think we should make the user and implementor consistent with each other?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants