Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

68 lines (55 sloc) 1.404 kB
#ifndef _gammu_common_h
#define _gammu_common_h
#include <gammu.h>
#include "../helper/string.h"
extern volatile gboolean gshutdown;
extern GSM_StateMachine *gsm;
extern INI_Section *cfg;
extern gboolean batch;
extern gboolean batchConn;
extern gboolean always_answer_yes;
const char *GetMonthName(const int month);
const char *GetDayName(const int day);
void Print_Error(GSM_Error error);
void GSM_Init(gboolean checkerror);
void GSM_Terminate(void);
void GetStartStop(int *start, int *stop, int num, int argc, char *argv[]);
/**
* Requests response from user on single question.
*/
PRINTF_STYLE(1, 2)
gboolean answer_yes(const char *format, ...);
/**
* Prints information about security status.
*/
void PrintSecurityStatus(void);
/**
* Converts string to memory type.
*/
GSM_MemoryType MemoryTypeFromString(const char *type);
/**
* Interrupt handler, sets shutdown flag.
*/
void interrupt(int sign);
/**
* Downloads file from arbitrary URL.
*
* \param url URL to download.
* \param file Storage for data.
*
* \returns ERR_NONE on success.
*/
GSM_Error GSM_ReadHTTPFile(const char *url, GSM_File *file);
/**
* Cleanup performed at program termination.
*/
void Cleanup(void);
/**
* Cleanups and terminates program.
*/
NORETURN
void Terminate(int code);
#endif
/* How should editor hadle tabs in this file? Add editor commands here.
* vim: noexpandtab sw=8 ts=8 sts=8:
*/
Jump to Line
Something went wrong with that request. Please try again.