Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Consistency ? #115

Open
ghost opened this issue Dec 17, 2018 · 1 comment
Open

Consistency ? #115

ghost opened this issue Dec 17, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 17, 2018

int (*load_pre_key)(signal_buffer **record, uint32_t pre_key_id, void *user_data);

Almost every field name end with _func, but not here.

@ghost ghost mentioned this issue Dec 17, 2018
@dkonigsberg
Copy link
Contributor

While I agree that there should be more consistency with callback naming conventions, its not immediately obvious which way to go. A few of the callbacks to use the _func suffix, but many do not. So its not a case of making one small change, but rather a case for making a rather large number of small changes. (Note that pull request #116 changes a lot of callback names.)

If someone can point me to a good example of a C style-guide/convention for this, I'll take a change into consideration.

Also, it should be kept in mind that a change like this will break all existing code that uses the library. Therefore, I shouldn't forget to make a larger version number bump when releasing any code that includes such a change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant