File: callback_so.c

package info (click to toggle)
xnee 3.06-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,324 kB
  • ctags: 2,429
  • sloc: ansic: 21,992; sh: 12,427; makefile: 563
file content (43 lines) | stat: -rw-r--r-- 700 bytes parent folder | download
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
#include <stdio.h>
#include "libxnee/xnee.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;
}