python/src/atrshmlogpython.c
static PyObject*
python_atrshmlog_write(PyObject *self, PyObject *args)
{
  PyAtrshmlog_write_RETURN result;
  unsigned long long starttime;
  unsigned long long endtime;
  int event;
  int eventflag;
  int userevent;
  char *txt; 
  Py_ssize_t size;
  
  if (!PyArg_ParseTuple(args, "iiiKKs#", &event, &eventflag, &userevent, &starttime, &endtime, &txt, &size))
    {
      PyErr_SetString(AtrshmlogError, "write : fetch failed (event, eventflag, usrevent, starttime, endtime, string)");
      return NULL;
    }

  result = PyAtrshmlog_write(event, eventflag, userevent, starttime, endtime, txt, size);

  return PyLong_FromLong(result);
}
/**
 * \brief We log a simple payload info with a string
 * 
 * For the eventflag its per convention to use a Ascii I for interval
 * or a Ascii P for a point in time.
 * For now we have no constants in so you have to give a
 * - I 73 decimal, 49 hex
 * - P 80 decimal, 50 hex
 * or use the constants EVENT_POINT_IN_TIME_C and EVENT_INTERVAL_IN_TIME_C
 *
 *
 * don't forget to check for the hidden mechanism in the doc
 *
 * We have to respect thath python not support binary in string.
 * So no embedded 0 here.
 * If you need binary logging sent me a post card for it.
 */
\brief We log a simple payload info with a string

For the eventflag its per convention to use a Ascii I for interval
or a Ascii P for a point in time.
For now we have no constants in so you have to give a
- I 73 decimal, 49 hex
- P 80 decimal, 50 hex
or use the constants EVENT_POINT_IN_TIME_C and EVENT_INTERVAL_IN_TIME_C

don't forget to check for the hidden mechanism in the doc

We have to respect thath python not support binary in string.
So no embedded 0 here.
If you need binary logging sent me a post card for it.
\ brief We log a simple payload info with a string For the eventflag its per convention to use a Ascii I for interval or a Ascii P for a point in time . For now we have no constants in so you have to give a - I 73 decimal 49 hex - P 80 decimal 50 hex or use the constants EVENT_POINT_IN_TIME_C and EVENT_INTERVAL_IN_TIME_C don ' t forget to check for the hidden mechanism in the doc We have to respect thath python not support binary in string . So no embedded 0 here . If you need binary logging sent me a post card for it .
static PyObject*
python_atrshmlog_write(PyObject *self, PyObject *args)
{
  PyAtrshmlog_write_RETURN result;
  unsigned long long starttime;
  unsigned long long endtime;
  int event;
  int eventflag;
  int userevent;
  char *txt; 
  Py_ssize_t size;
  if (!PyArg_ParseTuple(args, "iiiKKs#", &event, &eventflag, &userevent, &starttime, &endtime, &txt, &size))
    {
      PyErr_SetString(AtrshmlogError, "write : fetch failed (event, eventflag, usrevent, starttime, endtime, string)");
      return NULL;
    }
  result = PyAtrshmlog_write(event, eventflag, userevent, starttime, endtime, txt, size);
  return PyLong_FromLong(result);
}
static PyObject * python_atrshmlog_write ( PyObject * self , PyObject * args ) { PyAtrshmlog_write_RETURN result ; unsigned long long starttime ; unsigned long long endtime ; int event ; int eventflag ; int userevent ; char * txt ; Py_ssize_t size ; if ( ! PyArg_ParseTuple ( args , " " , & event , & eventflag , & userevent , & starttime , & endtime , & txt , & size ) ) { PyErr_SetString ( AtrshmlogError , " " ) ; return NULL ; } result = PyAtrshmlog_write ( event , eventflag , userevent , starttime , endtime , txt , size ) ; return PyLong_FromLong ( result ) ; }
\brief We log a simple payload info with a string
\ brief We log a simple payload info with a string