~ubuntu-branches/ubuntu/lucid/ming/lucid

« back to all changes in this revision

Viewing changes to perl_ext/Blur.xs

  • Committer: Bazaar Package Importer
  • Author(s): Ilya Barygin
  • Date: 2010-02-11 10:57:41 UTC
  • mfrom: (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100211105741-lzpmxc0703c4bo1w
Tags: 1:0.4.3-1ubuntu1
* Merge from Debian unstable (LP: #192664), remaining changes:
  - Python 2.6 transition:
    - debian/rules:
      + Include /usr/share/python/python.mk.
      + Add py_setup_install_args macro to setup.py install.
      + Installed modules differ between python versions and can't be shared,
        use DH_PYCENTRAL=nomove.
    - Remove unnecessary debian/python-ming.{dirs,files}, Python 2.3 is not
      supported anymore.
* debian/control: separate dependencies by commas.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ====================================================================
 
2
 * Copyright (c) 2008 by Klaus Rechert. All rights reserved.
 
3
 * This program is free software; you can redistribute it and/or modify
 
4
 * it under the same terms as Perl itself.
 
5
 * ====================================================================
 
6
 *
 
7
 * $Author: krechert $
 
8
 * $Id: Blur.xs,v 1.2 2008/02/27 17:07:58 krechert Exp $
 
9
 */
 
10
 
 
11
 
 
12
#include "EXTERN.h"
 
13
#include "perl.h"
 
14
#include "XSUB.h"
 
15
 
 
16
#include "SWF.h"
 
17
#include "perl_swf.h"
 
18
 
 
19
MODULE = SWF::Blur      PACKAGE = SWF::Blur             PREFIX = SWFBlur_
 
20
PROTOTYPES: ENABLE
 
21
 
 
22
SWF::Blur
 
23
SWFBlur_new(package="SWF::Blur", blurX, blurY, passes)
 
24
        char *package
 
25
        float blurX
 
26
        float blurY
 
27
        int passes
 
28
        CODE:
 
29
        RETVAL = newSWFBlur(blurX, blurY, passes);
 
30
        ST(0) = sv_newmortal();
 
31
        sv_setref_pv(ST(0), package, (void*)RETVAL);
 
32
 
 
33
void
 
34
SWFBlur_DESTROY(blur)
 
35
        SWF::Blur blur
 
36
        CODE:
 
37
        destroySWFBlur(blur);
 
38
        S_DEBUG(2, fprintf(stderr, "Blur DESTROY CALLED\n"));