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

Allows multiple network status listeners #9424

Merged
merged 7 commits into from Feb 11, 2019
Merged

Commits on Jan 31, 2019

  1. Allow multiple network status listeners

    Allow more than one callback to be register to NetworkInterfaces.
    This introduces new APIs:
    void NetworkInterface::add_event_listener(...);
    void NetworkInterface::remove_event_listener(...);
    
    Which internally calls interfaces attach() functions.
    Seppo Takalo committed Jan 31, 2019
    Copy the full SHA
    9c98d15 View commit details
    Browse the repository at this point in the history
  2. Fix copy constructors of Callback objects

    ->move() operator was not touching unused data fields, therefore
    leaving uninitialised data and failing the comparison.
    Fixed by initialising all fields to zero before moving.
    Seppo Takalo committed Jan 31, 2019
    Copy the full SHA
    207eddc View commit details
    Browse the repository at this point in the history
  3. Add "unregister" to valid word list

    Seppo Takalo committed Jan 31, 2019
    Copy the full SHA
    e9f5ed4 View commit details
    Browse the repository at this point in the history
  4. Add unittest to verify removal of last event listener

    Seppo Takalo committed Jan 31, 2019
    Copy the full SHA
    86019af View commit details
    Browse the repository at this point in the history
  5. Call "new" instead of no-throw version and the MBED_ERROR.

    Standard new operator already calls MBED_ERROR in failure.
    Seppo Takalo committed Jan 31, 2019
    Copy the full SHA
    06aea98 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2019

  1. Add NetworkInterface::attach() back, as it might be referred from bin…

    …aries
    Seppo Takalo committed Feb 1, 2019
    Copy the full SHA
    2744200 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2019

  1. Fix ns_list for C++03 compilers, like IAR 7

    Seppo Takalo committed Feb 6, 2019
    Copy the full SHA
    43a53df View commit details
    Browse the repository at this point in the history