Back to index

lshw  02.16
Defines | Functions
version.h File Reference

Go to the source code of this file.

Defines

#define __ID(string)   static const char rcsid[] __unused = string

Functions

const char * getpackageversion ()
const char * checkupdates ()

Define Documentation

#define __ID (   string)    static const char rcsid[] __unused = string

Definition at line 7 of file version.h.


Function Documentation

const char* checkupdates ( )

Definition at line 111 of file version.cc.

{
  static char *latest = NULL;

  if(!latest)
    latest = txtquery(PACKAGE, "ezix.org", NULL);

  return latest;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* getpackageversion ( )

Definition at line 28 of file version.cc.

{
  static char * result = NULL;
  char * lastslash = NULL;

  if(result)
    return result;

  lastslash = strrchr(versiontag, '/');
  if(lastslash)
    *lastslash = '\0';      // cut the basename off

  lastslash = strrchr(versiontag, '/');
  if(lastslash)
    *lastslash = '\0';  // cut the basename off

  lastslash = strrchr(versiontag, '/');
  if(lastslash)
    *lastslash = '\0';  // cut the basename off

  lastslash = strrchr(versiontag, '/');
  if(lastslash)
    result = lastslash+1;
  else
    return "unknown";

  return result;
}

Here is the caller graph for this function: