/usr/include/spiroentrypoints.h is in libspiro-dev 1:0.5.20150702-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 45 46 47 48 49 50 51 52 53 | #ifndef _SPIROENTRYPOINTS_H
# define _SPIROENTRYPOINTS_H
# include "bezctx_intf.h"
# include "spiro.h"
/* Possible values of the "ty" field. */
#define SPIRO_CORNER 'v'
#define SPIRO_G4 'o'
#define SPIRO_G2 'c'
#define SPIRO_LEFT '['
#define SPIRO_RIGHT ']'
/* For a closed contour add an extra cp with a ty set to */
#define SPIRO_END 'z'
/* For an open contour the first cp must have a ty set to*/
#define SPIRO_OPEN_CONTOUR '{'
/* For an open contour the last cp must have a ty set to */
#define SPIRO_END_OPEN_CONTOUR '}'
/* These 2 functions are kept for backwards compatibility for older */
/* programs. Please use the functions listed afterwards that return */
/* success/failure replies when done. */
extern void TaggedSpiroCPsToBezier(spiro_cp *spiros,bezctx *bc);
extern void SpiroCPsToBezier(spiro_cp *spiros,int n,int isclosed,bezctx *bc);
/* These functions are available in libspiro-0.2.20130930 or higher */
/* The two functions below return 1 upon success and 0 upon failure */
/* The spiros array should indicate it's own end... So */
/* Open contours must have the ty field of the first cp set to '{' */
/* and have the ty field of the last cp set to '}' */
/* Closed contours must have an extra cp at the end whose ty is 'z' */
/* the x&y values of this extra cp are ignored */
extern int TaggedSpiroCPsToBezier0(spiro_cp *spiros,bezctx *bc);
/* The first argument is an array of spiro control points. */
/* Open contours do not need to start with '{', nor to end with '}' */
/* Close contours do not need to end with 'z' */
extern int SpiroCPsToBezier0(spiro_cp *spiros,int n,int isclosed,bezctx *bc);
/* These functions are available in libspiro-0.3.20150131 or higher */
/* If you can't use TaggedSpiroCPsToBezier0(), SpiroCPsToBezier0(), */
/* these functions are enhanced versions of the original functions, */
/* where spiro success/failure replies are passd back through *done */
extern void TaggedSpiroCPsToBezier1(spiro_cp *spiros,bezctx *bc,int *done);
extern void SpiroCPsToBezier1(spiro_cp *spiros,int n,int isclosed,bezctx *bc,int *done);
#endif
|