Top
Systemwalker Operation Manager  Reference Guide
FUJITSU Software

16.1.6 Day Change Time Acquisition API

This section gives an explanation of the day change time acquisition API (Mp_GetDayStartTime).

Synopsis

int Mp_GetDayStartTime (char *APL_name,
               char *start_time) ;

Description

The Mp_GetDayStartTime function acquires day change time.

Parameters

APL_name

Specify the storage area address for the requested source application name (64 bytes or less).

Specify NULL at the end. Do not use names that begin with "Mp_" or "_CAL_."

start_time

Specify the day change time storage area address (HHMM format, 5 byte area). NULL is specified at the end.

Return Values

Return Value

Meaning

Action

0

Normal termination.

-

-10

Calendar service/daemon is not running.

Start the calendar service or daemon.

Program Example

Below is an example program of the day change time acquisition API:

#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>

#include <f3crhcap.h>

void main() {

        int ret ;
        char start_time[5] ;

        /*.......... initialization..........*/
        memset( start_time, 0x00, sizeof( start_time) ) ;

        /* day change time acquisition */
        ret = Mp_GetDayStartTime( "Test Pro", start_time ) ;

        printf( "ret= %d  start_time=%s\n", ret, start_time ) ;

        exit ( 0 ) ;
}