hackathon-dev #1
|
@ -1,15 +1,17 @@
|
||||||
#define PY_SSIZE_T_CLEAN
|
#define PY_SSIZE_T_CLEAN
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include "scode.h"
|
#include "scode.h"
|
||||||
|
#include "log.h"
|
||||||
#include "msg_queue.h"
|
#include "msg_queue.h"
|
||||||
#include "sysinput.h"
|
#include "sysinput.h"
|
||||||
#include "ep_upiwin.h"
|
#include "ep_upiwin.h"
|
||||||
#include "ep_init.h"
|
#include "ep_init.h"
|
||||||
|
|
||||||
static HRESULT convert_msg(PyDictObject *target, PMSG source)
|
static HRESULT convert_msg(PyObject *target, PMSG source)
|
||||||
{
|
{
|
||||||
PyObject *attr;
|
PyObject *attr;
|
||||||
|
|
||||||
|
ASSERT(PyDict_CheckExact(target));
|
||||||
PyDict_Clear(target);
|
PyDict_Clear(target);
|
||||||
attr = PyLong_FromUnsignedLong(source->target);
|
attr = PyLong_FromUnsignedLong(source->target);
|
||||||
if (!attr)
|
if (!attr)
|
||||||
|
@ -63,6 +65,6 @@ PyObject *Epython_post_quit_message(PyObject *self, PyObject *args)
|
||||||
if (!PyArg_ParseTuple(args, "i", &exitcode))
|
if (!PyArg_ParseTuple(args, "i", &exitcode))
|
||||||
return NULL;
|
return NULL;
|
||||||
Sys_Exit_Code = exitcode;
|
Sys_Exit_Code = exitcode;
|
||||||
Mq_post1(Sys_Queue, NULL, WM_QUIT, exitcode);
|
Mq_post1(Sys_Queue, 0, WM_QUIT, exitcode);
|
||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,10 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "scode.h"
|
#include "scode.h"
|
||||||
|
#include "log.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "gpio.h"
|
#include "gpio.h"
|
||||||
#include "log.h"
|
|
||||||
#include "fbinit.h"
|
#include "fbinit.h"
|
||||||
#include "fbprimitive.h"
|
|
||||||
#include "fontengine.h"
|
#include "fontengine.h"
|
||||||
#include "time_func.h"
|
#include "time_func.h"
|
||||||
#include "ep_init.h"
|
#include "ep_init.h"
|
||||||
|
@ -15,8 +14,6 @@
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
int running = 1;
|
|
||||||
MSG msg;
|
|
||||||
|
|
||||||
/* initialization sequence */
|
/* initialization sequence */
|
||||||
Time_init();
|
Time_init();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user