-long long tile_for_point(UDF_INIT *initid, UDF_ARGS *args, char *is_null, char *error)
-{
- long long lat = *(long long *)args->args[0];
- long long lon = *(long long *)args->args[1];
+/*
+ * To bind this into PGSQL, try something like:
+ *
+ * CREATE FUNCTION tile_for_point(int4, int4) RETURNS int8
+ * AS '/path/to/openstreetmap-website/db/functions/libpgosm', 'tile_for_point'
+ * LANGUAGE C STRICT;
+ *
+ * (without all the *s)
+ */