本文整理汇总了C++中REPORT_WARN函数的典型用法代码示例。如果您正苦于以下问题:C++ REPORT_WARN函数的具体用法?C++ REPORT_WARN怎么用?C++ REPORT_WARN使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了REPORT_WARN函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: platformRequest
/**
* Starts a new process to handle the given URL. The new process executes
* the value of the <tt>com.sun.midp.midlet.platformRequestCommand</tt>
* system property. The URL is passed as this process' sole command-line
* argument.
*
* @param pszUrl The 'C' string URL
*
* @return true if the platform request is configured
*/
int platformRequest(char* pszUrl) {
(void)pszUrl;
#if 0
char *execargs[3];
STARTUPINFO si;
PROCESS_INFORMATION pi;
if (strlen(pszUrl) == 0) {
/*
* This is a request to cancel. Since a process was already spawned
* to handle the previous URL, it too late.
*/
return 1;
}
execargs[0] = (char *)getInternalProp(PLATFORM_REQUEST_KEY);
if (execargs[0] == NULL) {
REPORT_WARN(LC_AMS, "PlatformRequest is not configured.");
return 0;
}
execargs[1] = pszUrl;
/* leave room for a space and zero terminator */
execargs[2] = (char*)midpMalloc(strlen(execargs[0]) +
strlen(execargs[1]) + 2);
if (execargs[2] == NULL) {
REPORT_WARN(LC_AMS, "PlatformRequest ran out of memory.");
return 0;
}
strcpy(execargs[2], execargs[0]);
strcat(execargs[2], " ");
strcat(execargs[2], execargs[1]);
memset(&si, 0, sizeof(si));
si.cb = sizeof(si);
// spawn the request using the configured URL handler and URL parameter
/*
* do not inherit handles
*/
if (CreateProcess(NULL, execargs[2], NULL, NULL, FALSE, 0,
NULL, NULL, &si, &pi)) {
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
} else {
REPORT_WARN(LC_AMS, "Spawning a handler process failed. Check the platformRequest configuration. ");
}
midpFree(execargs[2]);
#endif
return 1;
}
示例2: pushfindsuite
/**
* Finds push entries that belong to the given suite. If the available
* flag is set, return only those entries with live connections (socket)
* or cached incoming data.
*
* @param store The storagename of the suite
* @param available If set, return only "live" push entries
*
* @return A comma delimited list of full-text push entries
*/
char* pushfindsuite(char* store, int available) {
/* need revisit */
REPORT_WARN(LC_PUSH, "pushfindsuite: Stubbed out.");
(void)store;
(void)available;
return NULL;
}
示例3: pushgetfilter
/**
* Given the connection string and port number, look up the
* push entry and return its filter.
*
* @param conn the connection string
* @param port the port number to match
* @return the filter from the registry
*/
char* pushgetfilter(char* conn, int port) {
/* need revisit */
REPORT_WARN(LC_PUSH, "pushgetfilter: Stubbed out.");
(void)conn;
(void)port;
return NULL;
}
示例4: pushgetfiltermms
/**
* Given the connection string and application ID, look up the
* push entry and return its filter.
*
* @param conn the connection string
* @param appID The MMS application ID to match
* @return the filter from the registry
*/
char* pushgetfiltermms(char *conn, char *appID) {
/* need revisit */
REPORT_WARN(LC_PUSH, "pushgetfiltermms: Stubbed out.");
(void)conn;
(void)appID;
return NULL;
}
示例5: pushdel
/**
* Removes one entry from the push registry.
* If the entry is not registered return an error.
* On successful deletion, write a new copy of the file to disk.
*
* @param str The push entry string to be deleted
* @param store The MIDletSuite storagename
* @return <tt>0</tt> if successful, <tt>-2</tt> if the entry belongs
* to another suite.
*/
int pushdel(char *str, char *store) {
/* need revisit */
REPORT_WARN(LC_PUSH, "pushdel: Stubbed out.");
(void)str;
(void)store;
return 0;
}
示例6: anc_show_trusted_indicator
/**
* Platform handling code for turning off or on
* indicators for signed MIDlet.
*
* @todo Currently indicator does nothing for Java
* and platform widget modules as we are waiting for
* UI input.
*/
void anc_show_trusted_indicator(jboolean isTrusted) {
REPORT_WARN(LC_LOWUI, "anc_show_trusted_indicator: Stubbed out.");
/* @todo implement security indicator and remove
* the temporary workaround for warning removal.
*/
(void)isTrusted;
}
示例7: configurePort
void configurePort(char** ppszError, int hPort, long baudRate,
unsigned long options) {
(void)ppszError;
(void)hPort;
(void)baudRate;
(void)options;
REPORT_WARN(LC_PROTOCOL, "serial_port:configurePort: Stubbed out.");
}
示例8: writeToPort
long writeToPort(char** ppszError, long hPort, char* pBuffer,
long nNumberOfBytesToWrite) {
(void)ppszError;
(void)hPort;
(void)pBuffer;
(void)nNumberOfBytesToWrite;
REPORT_WARN(LC_PROTOCOL, "serial_port:writeToPort: Stubbed out.");
}
示例9: readFromPort
long readFromPort(char** ppszError, long hPort, char* pBuffer,
long nNumberOfBytesToRead) {
(void)ppszError;
(void)hPort;
(void)pBuffer;
(void)nNumberOfBytesToRead;
REPORT_WARN(LC_PROTOCOL, "serial_port:readFromPort: Stubbed out.");
}
示例10: openPortByNumber
long openPortByNumber(char** ppszError, long port, long baudRate,
long options) {
(void)ppszError;
(void)port;
(void)baudRate;
(void)options;
REPORT_WARN(LC_PROTOCOL, "serial_port:openPortByNumber: Stubbed out.");
}
示例11: alarmadd
/**
* Adds one entry to the alarm registry.
* If the entry already exists, return previous alarm time.
* On succesful registration, write a new copy of the file to disk.
*
* @param str The alarm entry to add
* @param alarm The absolute time at which this alarm is fired
* @param lastalarm The place to return the previous alarm time, if it exists
*
* @return <tt>0</tt> if successful, <tt>-2</tt> if there was an error
* allocating this alarm.
*/
int alarmadd(char* str, jlong alarm, jlong* lastalarm){
/* need revisit */
REPORT_WARN(LC_PUSH, "alarmadd: Stubbed out.");
(void)str;
(void)alarm;
(void)lastalarm;
return -2;
}
示例12: pushcheckout
/**
* Checks out the handle for the requested connection.
* The CHECKED_OUT token
* is left in the registry to indicate that an application is
* actively using the connection.
*
* @param protocol The protocol of the connection
* @param port The port number of the connection
* @param store The storage name of the requesting Suite
*
* @return <tt>-1</tt> if the connection is not found, other wise returns
* the previously opened file descriptor.
*/
int pushcheckout(char* protocol, int port, char* store) {
/* need revisit */
REPORT_WARN(LC_PUSH, "pushcheckout: Stubbed out.");
(void)protocol;
(void)port;
(void)store;
return -1;
}
示例13: createTimerHandle
int
createTimerHandle(int alarmHandle, jlong time) {
/* alarmHandle is really an address to push entry */
REPORT_WARN(LC_PUSH, "createTimerHandle: Stubbed out.");
(void)alarmHandle;
(void)time;
return -1;
}
示例14: midp_startNativeThread
/**
* starts another native thread.
* The primary usage of this function is testing of NAMS subsystem
* - second thread is used to throw initial events to main application thread.
*
* ATTENTION: this is a stub !
* Put real plarform specific thread start here if needed !
* If platfoprm specific thread routine signature differs from
* "midp_ThreadRoutine", use platform speficic thread routine as a wrapper
* to prepare parameters for "midp_ThreadRoutine" and to call it ...
*
* @param thread thread routine
* @param param thread routine parameter
*
* @return handle of created thread
*/
midp_ThreadId midp_startNativeThread(midp_ThreadRoutine thread,
midp_ThreadRoutineParameter param) {
(void)thread;
(void)param;
REPORT_WARN(LC_AMS, "midp_startNativeThread: Stubbed out.");
return MIDP_INVALID_NATIVE_THREAD_ID;
}
示例15: openPortByName
long openPortByName(char** ppszError, char* pszDeviceName, long baudRate,
long options) {
(void)ppszError;
(void)pszDeviceName;
(void)baudRate;
(void)options;
REPORT_WARN(LC_PROTOCOL, "serial_port:openPortByName: Stubbed out.");
return 0;
}