Defines | Functions

lastlog.c File Reference

Function for Retrieving the eurephia lastlog records. More...

#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <libxml/tree.h>
#include <sqlite3.h>
#include <eurephia_nullsafe.h>
#include <eurephia_context.h>
#include <eurephia_log.h>
#include <eurephia_xml.h>
#include <eurephia_values.h>
#include <eurephiadb_session_struct.h>
#include <eurephiadb_mapping.h>
#include <passwd.h>
#include <eurephiadb_driver.h>
#include "../sqlite.h"
#include "../fieldmapping.h"
Include dependency graph for lastlog.c:

Go to the source code of this file.

Defines

#define FMAP_LASTLOG

Functions

xmlDoc * eDBadminGetLastlog (eurephiaCTX *ctx, xmlDoc *srch_xml, const char *sortkeys)

Detailed Description

Function for Retrieving the eurephia lastlog records.

Author:
David Sommerseth <dazo@users.sourceforge.net>
Date:
2009-09-13

Definition in file lastlog.c.


Define Documentation

#define FMAP_LASTLOG

fieldmapping.h: Include declaration of tbl_sqlite_lastlog

Definition at line 54 of file lastlog.c.


Function Documentation

xmlDoc* eDBadminGetLastlog ( eurephiaCTX ctx,
xmlDoc *  srch_xml,
const char *  sortkeys 
)

Retrieve the eurephia lastlog

Version:
API version level 2
Parameters:
ctx eurephiaCTX
srch_xml XML document specifying the search query
sortkeys String containing the sort order of the fields

The XML format skeleton

    <eurephia format="1">
        <lastlog_query>
            <fieldMapping table="lastlog">
               <{search field}>{search value}</{search field}>
            </fieldMapping>
        </lastlog_query>
    </eurephia>

Valid field names are: uid, certid, ip, vpnip, status, login, logout, id, username, macaddr, uicid

Returns:
Returns a valid XML document on success, otherwise NULL
See also:
eurephiaXML_CreateDoc(), eurephiaXML_getRoot()

< Messages intended when debugging. Only for log level > 10

< The context is used via the eurephiadm console utility

< The context is used via a web based utility

< Alias for LOG_CRITICAL

< Operation failed and might have been aborted. Log level always 0

< Alias for LOG_ERROR, in case it is not defined

< API errors but not sever, program can continue to run

Definition at line 61 of file lastlog.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines