File: callback_so.c

package info (click to toggle)
xnee 3.19-9.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,432 kB
  • sloc: ansic: 23,555; sh: 13,521; makefile: 600
file content (44 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <stdio.h>
#include "libxnee/xnee.h"
#include "libxnee/xnee_session.h"

void 
xnee_record_dispatch_external (XPointer xpoint_xnee_data,
		      XRecordInterceptData *data )
{
  static int ctr=0;
  if (++ctr%1000==0) 
    {
      printf(" %d ", ctr);
      fflush(stdout);
    }

  if (  (data==NULL) || (!data->data) )
    {
      xnee_process_count(XNEE_PROCESS_RESET);
      return;
    } 

  XRecordFreeData(data);
  return;
}



void 
xnee_replay_dispatch_external (XPointer type_ref, XRecordInterceptData *data)
{
  static int ctr=0;
  if (++ctr%1000==0) 
    {
      printf(" %d ", ctr);
      fflush(stdout);
    }

  if (  (data==NULL) || (!data->data) )
    {
      return;
    }
  XRecordFreeData(data);
  return;
}