~ubuntu-branches/ubuntu/precise/openipmi/precise

« back to all changes in this revision

Viewing changes to lib/entity.c

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2005-10-20 23:01:55 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051020230155-32ns8hnb1es8hntb
Tags: 2.0.2-2
added missing libgdbm-dev to libopenipmi-dev
(closes: Bug#334623)

Show diffs side-by-side

added added

removed removed

Lines of Context:
677
677
    ipmi_unlock(entity->lock);
678
678
}
679
679
 
680
 
char *
681
 
_ipmi_entity_name(ipmi_entity_t *entity)
 
680
const char *
 
681
_ipmi_entity_name(const ipmi_entity_t *entity)
682
682
{
683
683
    return entity->name;
684
684
}
690
690
    *name = entity->name;
691
691
}
692
692
 
693
 
char *
 
693
const char *
694
694
_ipmi_entity_id_name(ipmi_entity_id_t entity_id)
695
695
{
696
696
    char *name = "";
4854
4854
}
4855
4855
 
4856
4856
int
4857
 
ipmi_entity_id_is_invalid(ipmi_entity_id_t *id)
 
4857
ipmi_entity_id_is_invalid(const ipmi_entity_id_t *id)
4858
4858
{
4859
4859
    return (id->domain_id.domain == NULL);
4860
4860
}
4862
4862
 
4863
4863
#ifdef IPMI_CHECK_LOCKS
4864
4864
void
4865
 
__ipmi_check_entity_lock(ipmi_entity_t *entity)
 
4865
__ipmi_check_entity_lock(const ipmi_entity_t *entity)
4866
4866
{
4867
4867
    if (!entity)
4868
4868
        return;