ECP-VeloC / AXL

Asynchronous Transfer Library
MIT License
2 stars 8 forks source link

AXL Create function signature #5

Open gonsie opened 6 years ago

gonsie commented 6 years ago

What is the best way to design the AXL API w.r.t. getting the transfer type from the caller.

Currently we take a string and AXL does the conversion axl_xfer_t type.

Should we change this so that AXL Create takes in an axl_xfer_t parameter instead?

Pro:

Cons:

gonsie commented 6 years ago

@becker33 says:

Changing the enum would thus be a new major version in AXL... which will be true. It represents either new technology support or deprecation. No user should try to use a new version of a library without recompiling. Some people do this, but that's wrong.

becker33 commented 6 years ago

In addition to what I said above: