---
name: "ExtUtils::Typemaps::Type"
section: "3p"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["openbsd"]
url: "https://new.carta.tech/ExtUtils::Typemaps::Type"
---

# ExtUtils::Typemaps::Type(3p)

Entry in the TYPEMAP section of a typemap

## NAME

ExtUtils::Typemaps::Type - Entry in the TYPEMAP section of a typemap

## SYNOPSIS

```
  use ExtUtils::Typemaps;
  ...
  my $type = $typemap->get_type_map('char*');
  my $input = $typemap->get_input_map($type->xstype);
```

## DESCRIPTION

Refer to ExtUtils::Typemaps for details. Object associates `"ctype"` with `"xstype"`, which is the index into the in- and output mapping tables.

## METHODS

### new

Requires `"xstype"` and `"ctype"` parameters.

Optionally takes `"prototype"` parameter.  Note however that the method to get/set the value is called `"proto"` rather than \<prototype\>.

### proto

Returns or sets the prototype.

### xstype

Returns the name of the XS type that this C type is associated to.

### ctype

Returns the name of the C type as it was set on construction.

### tidy\_ctype

Returns the canonicalized name of the C type.

## SEE ALSO

ExtUtils::Typemaps

## AUTHOR

Steffen Mueller `"<smueller@cpan.org"`\>

## COPYRIGHT & LICENSE

Copyright 2009, 2010, 2011, 2012 Steffen Mueller

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
