~ubuntu-branches/ubuntu/edgy/tilp/edgy

« back to all changes in this revision

Viewing changes to plugins/test/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Julien BLACHE
  • Date: 2004-10-31 16:31:08 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20041031163108-ijcnonytcx6avaim
Tags: 6.76-1
* New upstream release.
  + Fixes crash on !i386 due to va_list misuse.
  + Doesn't show the action dbox if the list of identical variables is
    empty (closes: #276047).
* Bumped B-D on newest libti*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  tilp - a linking program for TI graphing calculators
2
 
 *  Copyright (C) 1999-2002  Romain Lievin
3
 
 *
4
 
 * TiLP Plug-in for test/demo purposes.
5
 
 * Copyright (C) 2002 Romain Lievin <roms@tilp.info>
6
 
 *
7
 
 *  This program is free software; you can redistribute it and/or modify
8
 
 *  it under the terms of the GNU General Public License as published by
9
 
 *  the Free Software Foundation; either version 2 of the License, or
10
 
 *  (at your option) any later version.
11
 
 *
12
 
 *  This program is distributed in the hope that it will be useful,
13
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
 *  GNU General Public License for more details.
16
 
 *
17
 
 *  You should have received a copy of the GNU General Public License
18
 
 *  along with this program; if not, write to the Free Software
19
 
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
 
 */
21
 
 
22
 
#include <stdio.h>
23
 
 
24
 
#include "tilp_plugin.h"
25
 
 
26
 
TilpPluginInfo infos = 
27
 
{
28
 
  "Test/Demo Plug-in",
29
 
  "1.0.0",
30
 
  "Romain Lievin <roms@tilp.info>",
31
 
  "89s"
32
 
};
33
 
 
34
 
/* 
35
 
   Returns plug-ins properties/capabilites 
36
 
   - name [out]    : the plug-in name
37
 
   - version [out] : the plug-in version
38
 
   - fext [out]    : an array of file extensions
39
 
*/
40
 
TilpPluginInfo* plugin_query(void)
41
 
{
42
 
  //printf(" plugin_query\n");
43
 
  return &infos;
44
 
}
45
 
 
46
 
/* Run plug-in */
47
 
int plugin_run(void)
48
 
{
49
 
  printf(" plugin_run\n");
50
 
  return 0;
51
 
}
52
 
 
53
 
/* Load file */
54
 
int plugin_load(const char *filename)
55
 
{
56
 
  printf(" plugin_load\n");
57
 
  return 0;
58
 
}
59
 
 
60
 
/* Save file */
61
 
int plugin_save(const char *filename)
62
 
{
63
 
  printf(" plugin_save\n");
64
 
  return 0;
65
 
}