#606 Add a way to configure domains dynamically

2.15.1
closed-fixed
Ulich Kleber
5
2010-11-29
2010-09-11
Anton Pak
No

It is proposed to add a function that creates domain configuration.

SaErrorT oHpiDomainConfAdd(const SaHpiTextBufferT *host, SaHpiUint16T port, SaHpiDomainIdT *domain_id)

The function will create new domain configuration record similar to stanza in openhpiclient.conf.
Domain Id will be assigned automatically and will be returned to caller.

A patch with proposed changes is attached.

Discussion

1 2 > >> (Page 1 of 2)
  • Anton Pak
    Anton Pak
    2010-09-11

     
    Attachments
  • Anton Pak
    Anton Pak
    2010-09-15

    New version of the patch.
    Changes:
    - renamed oHpiDomainConfAdd to oHpiDomainAdd
    - get rid of g_hash_table_get_keys function (did not work for old glib2)

     
  • Anton Pak
    Anton Pak
    2010-09-24

    • assigned_to: avpak --> ulikleber
     
  • Anton Pak
    Anton Pak
    2010-09-24

    So, the proposal is to add to new oHpi* functions:
    SaErrorT oHpiDomainAdd(const SaHpiTextBufferT *host, SaHpiUint16T port, SaHpiDomainIdT *domain_id);
    SaErrorT oHpiDomainAddById( SaHpiDomainIdT domain_id, const SaHpiTextBufferT *host, SaHpiUint16T port );

    With oHpiDomainAdd HPI User adds domain and base library chooses up and assigns domain id.

    With oHpiDomainAddById HPI User adds domain with specified domain id.
    Base library may reject this request with ERR_DUPLICATE code if the domain id is already utilized.

     
  • Ulich Kleber
    Ulich Kleber
    2010-09-24

    Updated patch

     
    Attachments
  • Ulich Kleber
    Ulich Kleber
    2010-09-24

    Patch implements also oHpiDomainAddById

     
  • Ulich Kleber
    Ulich Kleber
    2010-09-24

    • status: open --> open-accepted
     
  • Anton Pak
    Anton Pak
    2010-09-29

    Looks good!

     
  • Ulich Kleber
    Ulich Kleber
    2010-09-29

    • status: open-accepted --> closed-fixed
     
1 2 > >> (Page 1 of 2)