Function

GgitDiffSimilarityMetricnew

Declaration [src]

GgitDiffSimilarityMetric*
ggit_diff_similarity_metric_new (
  GgitDiffSimilarityMetricFileSignatureCallback file_signature,
  GgitDiffSimilarityMetricBufferSignatureCallback buffer_signature,
  GgitDiffSimilarityMetricFreeSignatureCallback free_signature,
  GgitDiffSimilarityMetricSimilarityCallback similarity,
  gpointer user_data
)

Description [src]

Creates a new GgitDiffSimilarityMetric.

Parameters

file_signature GgitDiffSimilarityMetricFileSignatureCallback
 

A GgitDiffSimilarityMetricFileSignature.

buffer_signature GgitDiffSimilarityMetricBufferSignatureCallback
 

A GgitDiffSimilarityMetricBufferSignature.

free_signature GgitDiffSimilarityMetricFreeSignatureCallback
 

A GgitDiffSimilarityMetricFreeSignature.

similarity GgitDiffSimilarityMetricSimilarityCallback
 

A GgitDiffSimilarityMetricSimilarity.

user_data gpointer
 

Passed as user_data to the previous parameters.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: GgitDiffSimilarityMetric
 

A newly allocated GgitDiffSimilarityMetric.

 The caller of the function takes ownership of the data, and is responsible for freeing it.