Function
GgitDiffSimilarityMetricnew
Declaration [src]
GgitDiffSimilarityMetric*
ggit_diff_similarity_metric_new (
GgitDiffSimilarityMetricFileSignatureCallback file_signature,
GgitDiffSimilarityMetricBufferSignatureCallback buffer_signature,
GgitDiffSimilarityMetricFreeSignatureCallback free_signature,
GgitDiffSimilarityMetricSimilarityCallback similarity,
gpointer user_data
)
Parameters
file_signature |
GgitDiffSimilarityMetricFileSignatureCallback |
A |
|
buffer_signature |
GgitDiffSimilarityMetricBufferSignatureCallback |
A |
|
free_signature |
GgitDiffSimilarityMetricFreeSignatureCallback |
A |
|
similarity |
GgitDiffSimilarityMetricSimilarityCallback |
A |
|
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 |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |